Documentation ¶
Index ¶
- Constants
- func GenAppIfacesDoc(pkgName string) *File
- func GenCmdHandlerIface(entity QualId, useFactStorage bool, pkgName string) (f *File, cmd, ek, fk string)
- func GenCommandDoc(docFile string) *File
- func GenCommandHandlerWrapper(cmd, topic string, useFactStorage, withPolicyEnforcement bool, ...) *File
- func GenIfaceAuthorizable(pkgName string) (f *File, typIdent string)
- func GenIfaceDistinguishable(pkgName string) (f *File, typIdent string)
- func GenIfaceDistinguishableAsserter(pkgName string) (f *File, typIdent string)
- func GenIfacePolicer(entity QualId, pkgName string) (f *File, typIdent string)
- func GenStorageIface(entity QualId, useFactStorage bool, pkgName string) (f *File, storageReaderTypeIdent, storageReaderWriterTypeIdent string)
- type Adapters
- type Errors
- type NamedQualId
- type Objects
- type QualId
Constants ¶
View Source
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" )
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.
Variables ¶
This section is empty.
Functions ¶
func GenAppIfacesDoc ¶
func GenAppIfacesDoc(pkgName string) *File
func GenCmdHandlerIface ¶
func GenCommandDoc ¶
func GenCommandDoc(docFile string) *File
func GenIfaceAuthorizable ¶
func GenIfaceDistinguishable ¶
func GenIfacePolicer ¶
Types ¶
type Adapters ¶
type Adapters struct { StorageR NamedQualId StorageRW NamedQualId Policer NamedQualId DomServiceAdapters []NamedQualId }
Adapters provide interfaces to the outer world
type Errors ¶
type Errors struct { AuthorizationErrorNew QualId TargetIdentificationErrorNew QualId StorageLoadingErrorNew QualId StorageSavingErrorNew QualId DomainErrorNew QualId }
Error constructors create error values
type NamedQualId ¶
type Objects ¶
type Objects struct { Target QualId // target represents a distinguishable entity Entity QualId // entity represents a non-distinguishable concrete entity Actor QualId // actor represents the caller of a command CommandHandler QualId // command handler handles domain commands ErrorKeeper QualId // error keeper keeps domain errors FactKeeper QualId // fact keeper keeps domain facts Domain QualId // a qual only referncinf the domain import path }
Objects are represented by application level or domain interfaces
Click to show internal directories.
Click to hide internal directories.