-
Notifications
You must be signed in to change notification settings - Fork 0
/
invariants.go
31 lines (26 loc) · 1.08 KB
/
invariants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright © 2020 David Arnold <dar@xoe.solutions>
// SPDX-License-Identifier: MIT
package generator
// Constants represent invariant contract requirements that would
// have been too cumbersome to expose as configuration
// They _could_ be configuration, there is just not much gain in it.
const (
Distinguishable string = "OffersDistinguishable"
DistinguishableAsserter = "RequiresDistinguishableAsserter"
DistinguishableMethod = "Identifier"
DistinguishableAsserterMethod = "IsDistinguishable"
Authorizable = "OffersAuthorizable"
Policer = "RequiresPolicer"
PolicerMethod = "Can"
StorageReader = "RequiresStorageReader"
StorageWriterReader = "RequiresStorageWriterReader"
StorageLoadMethod = "Load"
StorageSaveMethod = "Save"
StorageSaveFactsMethod = "SaveFacts"
CommandHandler = "RequiresCommandHandler"
CommandHandlerMethod = "Handle"
ErrorKeeper = "RequiresErrorKeeper"
ErrorKeeperMethod = "Errors"
FactKeeper = "OffersFactKeeper"
FactKeeperMethod = "Facts"
)