Documentation ¶
Index ¶
- Constants
- func CreateConsumerGroups(ctx context.Context, client *redis.Client, opts *cli.RedisStreamsOptions) error
- func Dynamic(opts *cli.Options) error
- func NewClient(opts *cli.Options) (*redis.Client, error)
- func NewStreamsClient(opts *cli.Options) (*redis.Client, error)
- func Read(opts *cli.Options, md *desc.MessageDescriptor) error
- func Relay(opts *cli.Options, relayCh chan interface{}, shutdownCtx context.Context) (relay.IRelayBackend, error)
- func Write(opts *cli.Options, md *desc.MessageDescriptor) error
- type RedisStreams
- type Relayer
Constants ¶
View Source
const (
RetryReadInterval = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
func CreateConsumerGroups ¶
func CreateConsumerGroups(ctx context.Context, client *redis.Client, opts *cli.RedisStreamsOptions) error
func Dynamic ¶ added in v0.28.0
Dynamic starts up a new GRPC client connected to the dProxy service and receives a stream of outbound replay messages which are then written to the message bus.
func NewStreamsClient ¶
func Relay ¶
func Relay(opts *cli.Options, relayCh chan interface{}, shutdownCtx context.Context) (relay.IRelayBackend, error)
Relay sets up a new RedisStreams relayer
func Write ¶
func Write(opts *cli.Options, md *desc.MessageDescriptor) error
Write is the entry point function for performing write operations in RedisStreams.
This is where we verify that the passed args and flags combo makes sense, attempt to establish a connection, parse protobuf before finally attempting to perform the write.
Types ¶
type RedisStreams ¶
type RedisStreams struct { Options *cli.Options Client *redis.Client MsgDesc *desc.MessageDescriptor Context context.Context // contains filtered or unexported fields }
func (*RedisStreams) Read ¶
func (r *RedisStreams) Read() error
func (*RedisStreams) Write ¶
func (r *RedisStreams) Write(value []byte) error
Click to show internal directories.
Click to hide internal directories.