Documentation
¶
Index ¶
- type EventStore
- type InMemoryStore
- func (i *InMemoryStore) ListSourcesByKey(_ context.Context, key string) ([]string, error)
- func (i *InMemoryStore) LookUp(_ context.Context, key, source string) (*event.Message, error)
- func (i *InMemoryStore) LookUpByKey(_ context.Context, key string) ([]*event.Message, error)
- func (i *InMemoryStore) Persist(_ context.Context, key, source, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventStore ¶
type EventStore interface { ListSourcesByKey(ctx context.Context, key string) ([]string, error) LookUp(ctx context.Context, key, source string) (*event.Message, error) LookUpByKey(ctx context.Context, key string) ([]*event.Message, error) Persist(ctx context.Context, key, source, content string) error }
EventStore persists an event by key & source, and looks up an event by key+source, or a collection of events by key.
type InMemoryStore ¶
func NewInMemoryStore ¶
func NewInMemoryStore() *InMemoryStore
func (*InMemoryStore) ListSourcesByKey ¶
func (*InMemoryStore) LookUpByKey ¶
Click to show internal directories.
Click to hide internal directories.