Documentation ¶
Index ¶
- type Storage
- func (s *Storage) CreateTables()
- func (s *Storage) DeleteTables()
- func (s *Storage) GetFromRevision(id string, from int) ([]goes.Event, error)
- func (s *Storage) GetLastEvent(id string) ([]goes.Event, error)
- func (s *Storage) GetSnapshot(id string, version int) (*goes.Snapshot, error)
- func (s *Storage) GetUndispatchedEvent() ([]goes.Event, error)
- func (s *Storage) MarkDispatchedEvent(es []goes.Event) error
- func (s *Storage) Save(es []goes.Event) error
- func (s *Storage) SaveSnapshot(snap *goes.Snapshot) error
- type UndispatchedEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage dynamodb storage
func (*Storage) GetFromRevision ¶
GetFromRevision get from revision
func (*Storage) GetLastEvent ¶
GetLastEvent get all event
func (*Storage) GetSnapshot ¶
GetSnapshot get snapshot
func (*Storage) GetUndispatchedEvent ¶
GetUndispatchedEvent get all undispatched event
func (*Storage) MarkDispatchedEvent ¶
MarkDispatchedEvent delete dispatched event
type UndispatchedEvent ¶
type UndispatchedEvent struct { Node int `json:"node" dynamodbav:"n"` KeyTime string `json:"keyTime" dynamodbav:"keyTime"` AggregateID string `json:"aggregateID" dynamodbav:"aggregateID"` AggregateType string `json:"aggregateType" dynamodbav:"aggregateType"` EventID string `json:"eventID" dynamodbav:"eventID"` EventType string `json:"eventType" dynamodbav:"eventType"` Revision int `json:"revision" dynamodbav:"revision"` Time int64 `json:"time" dynamodbav:"time"` Data []byte `json:"data" dynamodbav:"data"` }
UndispatchedEvent entity
Click to show internal directories.
Click to hide internal directories.