mirror of
https://github.com/valitydev/limiter-proto.git
synced 2024-11-06 00:35:18 +00:00
TD-329: Add explicit Rollback operation (#24)
This commit is contained in:
parent
8bb5f04462
commit
61581846b4
@ -57,18 +57,28 @@ exception ForbiddenOperationAmount {
|
||||
}
|
||||
|
||||
service Limiter {
|
||||
|
||||
Limit Get(1: LimitID id, 2: Clock clock, 3: LimitContext context) throws (
|
||||
1: LimitNotFound e1,
|
||||
2: base.InvalidRequest e2
|
||||
)
|
||||
|
||||
Clock Hold(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
|
||||
1: LimitNotFound e1,
|
||||
3: base.InvalidRequest e2
|
||||
)
|
||||
|
||||
Clock Commit(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
|
||||
1: LimitNotFound e1,
|
||||
2: LimitChangeNotFound e2,
|
||||
3: base.InvalidRequest e3,
|
||||
4: ForbiddenOperationAmount e4
|
||||
)
|
||||
|
||||
Clock Rollback(1: LimitChange change, 2: Clock clock, 3: LimitContext context) throws (
|
||||
1: LimitNotFound e1,
|
||||
2: LimitChangeNotFound e2,
|
||||
3: base.InvalidRequest e3
|
||||
)
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user