Documentation
¶
Index ¶
- Constants
- func GetContent(ctx context.Context, contentLocation string, contentEncoding string, ...) []byte
- func GetEventContent(ctx context.Context, contentLocation string, contentEncoding string, ...) *model.AwsEventRecord
- func NewEntity(ctx context.Context, stateRecord *model.AwsStateRecord, ...) core.Entity
- func NewEntityPage(ctx context.Context, record *model.AwsStateRecordPage) core.EntityPage
- func NewEvent(ctx context.Context, record *model.AwsEventRecord) core.Event
- func NewEventFactory() core.EventFactory
- func NewEventPage(ctx context.Context, record *model.AwsEventRecordPage) core.EventPage
- func NewEventStore(eventStore model.AwsEventStore) core.EventStore
- func NewStateStore(eventStore model.AwsEventStore, stateStore model.AwsStateStore) core.StateStore
- func NewVersion(record *model.AwsEventHeaderRecord) core.Version
- func NewVersionPage(record *model.AwsEventHeaderRecordPage) core.VersionPage
- type Context
- type EntityImpl
- func (e EntityImpl) CreatedAt() time.Time
- func (e EntityImpl) CreatedBy() string
- func (e EntityImpl) ID() string
- func (e EntityImpl) IsDeleted() bool
- 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 EntityPageImpl
- 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
- type EventPageImpl
- type VersionImpl
- type VersionPageImpl
Constants ¶
View Source
const AwsContext = "AwsContext"
View Source
const RecordSizeLimit = 960
Variables ¶
This section is empty.
Functions ¶
func GetContent ¶ added in v0.9.0
func GetEventContent ¶ added in v0.9.0
func NewEntity ¶ added in v0.9.0
func NewEntity(ctx context.Context, stateRecord *model.AwsStateRecord, eventRecord *model.AwsEventRecord) core.Entity
func NewEntityPage ¶ added in v0.9.0
func NewEntityPage(ctx context.Context, record *model.AwsStateRecordPage) core.EntityPage
func NewEventFactory ¶
func NewEventFactory() core.EventFactory
func NewEventPage ¶ added in v0.9.0
func NewEventStore ¶
func NewEventStore(eventStore model.AwsEventStore) core.EventStore
func NewStateStore ¶
func NewStateStore(eventStore model.AwsEventStore, stateStore model.AwsStateStore) core.StateStore
func NewVersion ¶ added in v0.9.0
func NewVersion(record *model.AwsEventHeaderRecord) core.Version
func NewVersionPage ¶ added in v0.9.0
func NewVersionPage(record *model.AwsEventHeaderRecordPage) core.VersionPage
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 AwsCounterStore model.AwsCounterStore AwsGraphqlGateway model.AwsGraphqlGateway }
type EntityImpl ¶ added in v0.4.0
type EntityImpl struct { Context context.Context EventRecord *model.AwsEventRecord StateRecord *model.AwsStateRecord }
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) IsDeleted ¶ added in v0.16.0
func (e EntityImpl) IsDeleted() bool
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 EntityPageImpl ¶ added in v0.9.0
type EntityPageImpl struct { Ctx context.Context Record *model.AwsStateRecordPage }
func (EntityPageImpl) Items ¶ added in v0.9.0
func (e EntityPageImpl) Items() []core.Entity
func (EntityPageImpl) NextToken ¶ added in v0.9.0
func (e EntityPageImpl) NextToken() string
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
type EventPageImpl ¶ added in v0.9.0
type EventPageImpl struct { Ctx context.Context Record *model.AwsEventRecordPage }
func (EventPageImpl) Items ¶ added in v0.9.0
func (e EventPageImpl) Items() []core.Event
func (EventPageImpl) NextToken ¶ added in v0.9.0
func (e EventPageImpl) NextToken() string
type VersionImpl ¶ added in v0.9.0
type VersionImpl struct {
Record *model.AwsEventHeaderRecord
}
func (VersionImpl) Author ¶ added in v0.15.0
func (v VersionImpl) Author() string
func (VersionImpl) ID ¶ added in v0.9.0
func (v VersionImpl) ID() uint64
func (VersionImpl) Time ¶ added in v0.9.0
func (v VersionImpl) Time() time.Time
type VersionPageImpl ¶ added in v0.9.0
type VersionPageImpl struct {
Record *model.AwsEventHeaderRecordPage
}
func (VersionPageImpl) Items ¶ added in v0.9.0
func (e VersionPageImpl) Items() []core.Version
func (VersionPageImpl) NextToken ¶ added in v0.9.0
func (e VersionPageImpl) NextToken() string
Click to show internal directories.
Click to hide internal directories.