package
2.5.0+incompatible
Repository: https://github.com/microsoft/redutil.git
Documentation: pkg.go.dev
# Functions
NewEvent creates and returns a new event based off the series of fields.
NewPattern creates and returns a new event pattern off the series of fields.
NewPubsub creates a new Emitter based on pubsub on the provided Redis pool.
# Constants
PatternEvent is the event type for events in Redis which will be subscribed to using patterns.
PlainEvent is the event type for events that are simple subscribed to in Redis without pattern matching.
# Structs
An Event is passed down to a Listener's Handle function.
An Event is passed to an Emitter to manage which events a Listener is subscribed to.
Field is a type which is are concatenated into events, listed to over Redis.
Pubsub is an implementation of the Emitter interface using Redis pupsub.
# Type aliases
EventType is used to distinguish between pattern and plain text events.