Documentation ¶
Index ¶
- Variables
- func NewEvent(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
- type DummyStruct
- type Event
- func (t *Event) Action() string
- func (t *Event) Aggregate() string
- func (t *Event) AggregateID() string
- func (t *Event) Dispatched() bool
- func (t *Event) ExternalID() string
- func (t *Event) ExternalModule() string
- func (t *Event) GetID() string
- func (t *Event) ID() string
- func (t *Event) Init(wk libdomain.WorkflowInterface, pb *pb.Event)
- func (t *Event) JSON() ([]byte, error)
- func (t *Event) Map() map[string]interface{}
- func (t *Event) Payload() string
- func (t *Event) Pb() *pb.Event
- func (t *Event) TenantID() string
- type EventCollection
- func (c *EventCollection) Aggregate() libdomain.AggregateInterface
- func (c *EventCollection) GetByID(id string) *Event
- func (c *EventCollection) GetKeys() []string
- func (d *EventCollection) Map() []map[string]interface{}
- func (c *EventCollection) Rehydrate(pbEvents []*pb.Event)
- func (c *EventCollection) Slice() []*Event
- func (c *EventCollection) SlicePb() []*pb.Event
- type EventFactory
- type EventFactoryInterface
- type EventInternalLibrary
- type PbEvent
- type TestClientInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var EventAggregate *eventAggregate
EventAggregate contain the definition of the event object.
*It is also used to generate the factory containing the main functions with the environnement.
View Source
var EventEntity *eventEntity
Functions ¶
func NewEvent ¶
func NewEvent(wk libdomain.WorkflowInterface) libdomain.DomainObjectInterface
Types ¶
type DummyStruct ¶
type DummyStruct struct{}
type Event ¶
type Event struct { Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
Event is the main struct for operating a event object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*Event) AggregateID ¶
func (*Event) Dispatched ¶
func (*Event) ExternalID ¶
func (*Event) ExternalModule ¶
type EventCollection ¶
type EventCollection struct { //*libdomain.Collection // EventCollectionInterface Workflow libdomain.WorkflowInterface // contains filtered or unexported fields }
EventCollection is the main struct for operating a list event object, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*EventCollection) Aggregate ¶
func (c *EventCollection) Aggregate() libdomain.AggregateInterface
func (*EventCollection) GetByID ¶
func (c *EventCollection) GetByID(id string) *Event
GetByID return the event in this collection, by id.
func (*EventCollection) GetKeys ¶
func (c *EventCollection) GetKeys() []string
GetByID return the event in this collection, by id.
func (*EventCollection) Map ¶
func (d *EventCollection) Map() []map[string]interface{}
func (*EventCollection) Rehydrate ¶
func (c *EventCollection) Rehydrate(pbEvents []*pb.Event)
func (*EventCollection) Slice ¶
func (c *EventCollection) Slice() []*Event
GetSlice return all events in this collection, as a slice.
func (*EventCollection) SlicePb ¶
func (c *EventCollection) SlicePb() []*pb.Event
GetSlice return all events in this collection, as a slice.
type EventFactory ¶
type EventFactory struct { *libdomain.Factory EventFactoryInterface }
EventFactory is the main struct for operating event objects, which shall
*be used in custom code because it contains the environnement informations and *the easy-to-use functions.
func (*EventFactory) New ¶
func (d *EventFactory) New() *Event
New return a new instance of a event object.
func (*EventFactory) NewCollection ¶
func (d *EventFactory) NewCollection(events []*Event) *EventCollection
NewCollection return a new instance of a event collection object.
type EventFactoryInterface ¶
type EventFactoryInterface interface { }
type EventInternalLibrary ¶
type EventInternalLibrary struct { }
type TestClientInterface ¶
type TestClientInterface interface { }
Click to show internal directories.
Click to hide internal directories.