Documentation ¶
Overview ¶
TODO: make subscription publishing related to tx commit instead to be done on the fly
Index ¶
- type History
- type Memory
- func (s *Memory) AddEvent(event MemoryEvent)
- func (s *Memory) BeginTx(ctx context.Context) (context.Context, error)
- func (s *Memory) CommitTx(ctx context.Context) error
- func (s *Memory) Create(ctx context.Context, ptr interface{}) error
- func (s *Memory) DeleteAll(ctx context.Context, T interface{}) error
- func (s *Memory) DeleteByID(ctx context.Context, T interface{}, id string) error
- func (s *Memory) DisableEventLogging()
- func (s *Memory) EntityTypeNameFor(T interface{}) string
- func (s *Memory) Events() []MemoryEvent
- func (s *Memory) FindAll(ctx context.Context, T interface{}) frameless.Iterator
- func (s *Memory) FindByID(ctx context.Context, ptr interface{}, id string) (_found bool, _err error)
- func (s *Memory) History() History
- func (s *Memory) InTx(ctx context.Context, fn func(tx *MemoryTransaction) error) error
- func (s *Memory) RollbackTx(ctx context.Context) error
- func (s *Memory) SubscribeToCreate(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
- func (s *Memory) SubscribeToDeleteAll(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
- func (s *Memory) SubscribeToDeleteByID(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
- func (s *Memory) SubscribeToUpdate(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
- func (s *Memory) Update(ctx context.Context, ptr interface{}) error
- type MemoryEvent
- type MemoryEventManager
- type MemoryEventViewer
- type MemoryTransaction
- type StorageEventView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type History ¶ added in v0.10.0
type History struct {
// contains filtered or unexported fields
}
History will return a list of the event history of the
type Memory ¶ added in v0.11.0
type Memory struct {
// contains filtered or unexported fields
}
Memory is an event source principles based development in memory storage, that allows easy debugging and tracing during development for fast and descriptive feedback loops.
func (*Memory) AddEvent ¶ added in v0.11.0
func (s *Memory) AddEvent(event MemoryEvent)
func (*Memory) DeleteByID ¶ added in v0.11.0
func (*Memory) DisableEventLogging ¶ added in v0.11.0
func (s *Memory) DisableEventLogging()
func (*Memory) EntityTypeNameFor ¶ added in v0.11.0
func (*Memory) Events ¶ added in v0.11.0
func (s *Memory) Events() []MemoryEvent
func (*Memory) SubscribeToCreate ¶ added in v0.11.0
func (s *Memory) SubscribeToCreate(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
func (*Memory) SubscribeToDeleteAll ¶ added in v0.11.0
func (s *Memory) SubscribeToDeleteAll(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
func (*Memory) SubscribeToDeleteByID ¶ added in v0.11.0
func (s *Memory) SubscribeToDeleteByID(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
func (*Memory) SubscribeToUpdate ¶ added in v0.11.0
func (s *Memory) SubscribeToUpdate(T interface{}, subscriber resources.Subscriber) (resources.Subscription, error)
type MemoryEvent ¶ added in v0.11.0
type MemoryEventManager ¶ added in v0.11.0
type MemoryEventManager interface { AddEvent(MemoryEvent) MemoryEventViewer }
type MemoryEventViewer ¶ added in v0.11.0
type MemoryEventViewer interface {
Events() []MemoryEvent
}
type MemoryTransaction ¶ added in v0.11.0
type MemoryTransaction struct {
// contains filtered or unexported fields
}
func (*MemoryTransaction) AddEvent ¶ added in v0.11.0
func (tx *MemoryTransaction) AddEvent(event MemoryEvent)
func (MemoryTransaction) Events ¶ added in v0.11.0
func (tx MemoryTransaction) Events() []MemoryEvent
func (MemoryTransaction) View ¶ added in v0.11.0
func (tx MemoryTransaction) View() StorageEventView
type StorageEventView ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.