Documentation ¶
Index ¶
- type MemoryStore
- func (ms *MemoryStore) DataKey(_ context.Context, ev interfaces.IncomingEventInterface, ...) string
- func (ms *MemoryStore) Enqueue(_ context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (ms *MemoryStore) Get(_ context.Context, key string) (string, bool, time.Duration, error)
- func (ms *MemoryStore) GetQueue(_ context.Context, key string) ([]string, bool, time.Duration, error)
- func (ms *MemoryStore) Len() int
- func (ms *MemoryStore) Remove(_ context.Context, key string) (bool, error)
- func (ms *MemoryStore) Set(_ context.Context, key string, value string, ttl time.Duration) (bool, error)
- func (ms *MemoryStore) Update(_ context.Context, key string, value string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore - In-app memory storage
func (*MemoryStore) DataKey ¶
func (ms *MemoryStore) DataKey(_ context.Context, ev interfaces.IncomingEventInterface, dest interfaces.DestinationInterface, prefix string, suffix string) string
DataKey - Generate DataKey with events and destination
func (*MemoryStore) Enqueue ¶
func (ms *MemoryStore) Enqueue(_ context.Context, key string, value string, ttl time.Duration) (bool, error)
Enqueue - ttl: optional params for setting the ttl of queue when first element is enqueued
Click to show internal directories.
Click to hide internal directories.