Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EventModel = &libdata.ModelDefinition{ Name: "event", Fields: []libdata.Field{ &fields.Text{Name: "aggregate", String: "Aggregate", Required: true}, &fields.Text{Name: "aggregateUUID", String: "Aggregate UUID", Required: true}, &fields.Text{Name: "name", String: "Name", Required: true}, &fields.JSON{Name: "payload", String: "Payload", Required: true}, &fields.Text{Name: "idempotencyKey", String: "Idempotency Key"}, &fields.Boolean{Name: "published", String: "Published", Required: true}, }, Datetime: true, CanAssignID: false, StoreCustomFunctions: `//InsertBuildArgs todo func (s *EventStore) NewEvent( aggregate string, aggregateUUID string, name string, payload []byte, ) libdata.EventInterface { return &pb.Event{ UUID: uuid.New().String(), Aggregate: aggregate, AggregateUUID: aggregateUUID, Name: name, Payload: payload, } } func (e *Event) GetName() string { return e.Name } func (e *Event) GetAggregate() string { return e.Aggregate } func (e *Event) GetPayload() []byte { return e.Payload }`, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.