Documentation ¶
Index ¶
- Constants
- func NewEvent(ctx context.Context, record *model.AwsEventRecord) core.Event
- func NewEventFactory() core.EventFactory
- func NewEventStore(eventStore model.AwsEventStore, objectStore model.AwsObjectStore) core.EventStore
- func NewStateStore(eventStore core.EventStore) core.StateStore
- type Context
- type EntityImpl
- func (e EntityImpl) CreatedAt() time.Time
- func (e EntityImpl) CreatedBy() string
- func (e EntityImpl) ID() string
- func (e *EntityImpl) State(v interface{})
- func (e EntityImpl) Type() string
- func (e EntityImpl) UpdatedAt() time.Time
- func (e EntityImpl) UpdatedBy() string
- func (e EntityImpl) Version() uint64
- type EventImpl
- func (e EventImpl) Author() string
- func (e EventImpl) Class() core.EventClass
- func (e EventImpl) Data(v interface{})
- func (e EventImpl) Entity() core.Entity
- func (e EventImpl) ID() string
- func (e EventImpl) Source() string
- func (e EventImpl) Time() time.Time
- func (e EventImpl) Transaction() string
- func (e EventImpl) Trigger() core.Event
- func (e EventImpl) Type() string
Constants ¶
View Source
const AwsContext = "AwsContext"
Variables ¶
This section is empty.
Functions ¶
func NewEventFactory ¶
func NewEventFactory() core.EventFactory
func NewEventStore ¶
func NewEventStore(eventStore model.AwsEventStore, objectStore model.AwsObjectStore) core.EventStore
func NewStateStore ¶
func NewStateStore(eventStore core.EventStore) core.StateStore
Types ¶
type Context ¶ added in v0.4.0
type Context struct { AwsHandlerID string AwsHandlerVersion string AwsHandlerTimeout uint64 AwsFactory factory.AwsFactory AwsObjectStore model.AwsObjectStore AwsEventStore model.AwsEventStore AwsEventBus model.AwsEventBus AwsStateStore model.AwsStateStore AwsGraphqlGateway model.AwsGraphqlGateway }
type EntityImpl ¶ added in v0.4.0
type EntityImpl struct {
LastEvent *model.AwsEventRecord
}
func (EntityImpl) CreatedAt ¶ added in v0.4.0
func (e EntityImpl) CreatedAt() time.Time
func (EntityImpl) CreatedBy ¶ added in v0.4.0
func (e EntityImpl) CreatedBy() string
func (EntityImpl) ID ¶ added in v0.4.0
func (e EntityImpl) ID() string
func (*EntityImpl) State ¶ added in v0.4.0
func (e *EntityImpl) State(v interface{})
func (EntityImpl) Type ¶ added in v0.4.0
func (e EntityImpl) Type() string
func (EntityImpl) UpdatedAt ¶ added in v0.4.0
func (e EntityImpl) UpdatedAt() time.Time
func (EntityImpl) UpdatedBy ¶ added in v0.4.0
func (e EntityImpl) UpdatedBy() string
func (EntityImpl) Version ¶ added in v0.4.0
func (e EntityImpl) Version() uint64
type EventImpl ¶ added in v0.4.0
type EventImpl struct { Ctx context.Context Record *model.AwsEventRecord }
func (EventImpl) Class ¶ added in v0.4.0
func (e EventImpl) Class() core.EventClass
func (EventImpl) Transaction ¶ added in v0.4.0
Click to show internal directories.
Click to hide internal directories.