Documentation
¶
Index ¶
- func Entries[inner any](reply any, err error) ([]streamEntry[inner], error)
- func StreamNotifications[inner any](reply any, err error) (map[string][]streamEntry[inner], error)
- type EventID
- type Mongo
- type Redis
- func (r Redis) AcknowledgeBlocks(ctx context.Context, events []EventID) error
- func (r Redis) AddBlocks(ctx context.Context, blocks []uint64) error
- func (r Redis) FetchStreamEvents(ctx context.Context, consumerID string, batchSize uint) (map[EventID]uint64, error)
- func (r Redis) FindStaleBlocks(ctx context.Context, consumerID string, timeout time.Duration, batchSize uint) (map[EventID]uint64, error)
- func (h Redis) GetLastSeenBlock(ctx context.Context) (uint64, error)
- func (h Redis) InitializeRedis(ctx context.Context) error
- func (h Redis) SaveLastSeenBlock(ctx context.Context, block uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EventID ¶
type EventID = string
EventID is opaque identifier used identifying and ack'ing prococessed events In Redis implementations corresponds to entry ID returned by XADD, e.g. `1518951480106-0`
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (Mongo) FetchRelations ¶
type Redis ¶
type Redis struct {
// contains filtered or unexported fields
}
func (Redis) AcknowledgeBlocks ¶
func (Redis) AddBlocks ¶
AddTransaction tries to add blocks to the processing stream and returns blocks that have already been scheduled (if any)
func (Redis) FetchStreamEvents ¶
func (Redis) FindStaleBlocks ¶
func (Redis) GetLastSeenBlock ¶
Click to show internal directories.
Click to hide internal directories.