Documentation ¶
Index ¶
- Constants
- func CreateConsumerGroups(ctx context.Context, client *redis.Client, opts *cli.RedisStreamsOptions) error
- func NewClient(opts *cli.Options) (*redis.Client, error)
- func NewStreamsClient(opts *cli.Options) (*redis.Client, error)
- func Read(opts *cli.Options) error
- func Relay(opts *cli.Options) error
- func Write(opts *cli.Options) error
- type IRedisStreamsRelayer
- 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 NewStreamsClient ¶
Types ¶
type IRedisStreamsRelayer ¶
type IRedisStreamsRelayer interface {
Relay() error
}
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.