impl

package
v0.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

View Source
const AwsContext = "AwsContext"

Variables

This section is empty.

Functions

func NewEvent

func NewEvent(ctx context.Context, record *model.AwsEventRecord) core.Event

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) Author added in v0.4.0

func (e EventImpl) Author() string

func (EventImpl) Class added in v0.4.0

func (e EventImpl) Class() core.EventClass

func (EventImpl) Data added in v0.4.0

func (e EventImpl) Data(v interface{})

func (EventImpl) Entity added in v0.4.0

func (e EventImpl) Entity() core.Entity

func (EventImpl) ID added in v0.4.0

func (e EventImpl) ID() string

func (EventImpl) Source added in v0.4.0

func (e EventImpl) Source() string

func (EventImpl) Time added in v0.4.0

func (e EventImpl) Time() time.Time

func (EventImpl) Transaction added in v0.4.0

func (e EventImpl) Transaction() string

func (EventImpl) Trigger added in v0.4.0

func (e EventImpl) Trigger() core.Event

func (EventImpl) Type added in v0.4.0

func (e EventImpl) Type() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL