redis

package
v0.0.50 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StreamOpAck = StreamOp("ack")
	StreamOpDel = StreamOp("del")
)

Functions

This section is empty.

Types

type RedisList

type RedisList struct {
	Client   *redis.Client
	Host     string
	Port     string
	Password string
	Key      string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
}

func (*RedisList) Cleanup

func (d *RedisList) Cleanup() error

func (*RedisList) ClearWork

func (d *RedisList) ClearWork() error

func (*RedisList) GetWork

func (d *RedisList) GetWork() (io.Reader, error)

func (*RedisList) HandleFailure

func (d *RedisList) HandleFailure() error

func (*RedisList) Init

func (d *RedisList) Init() error

func (*RedisList) LoadEnv

func (d *RedisList) LoadEnv(prefix string) error

func (*RedisList) LoadFlags

func (d *RedisList) LoadFlags() error

type RedisPubSub

type RedisPubSub struct {
	Client   *redis.Client
	Host     string
	Port     string
	Password string
	Key      string
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
}

func (*RedisPubSub) Cleanup

func (d *RedisPubSub) Cleanup() error

func (*RedisPubSub) ClearWork

func (d *RedisPubSub) ClearWork() error

func (*RedisPubSub) GetWork

func (d *RedisPubSub) GetWork() (io.Reader, error)

func (*RedisPubSub) HandleFailure

func (d *RedisPubSub) HandleFailure() error

func (*RedisPubSub) Init

func (d *RedisPubSub) Init() error

func (*RedisPubSub) LoadEnv

func (d *RedisPubSub) LoadEnv(prefix string) error

func (*RedisPubSub) LoadFlags

func (d *RedisPubSub) LoadFlags() error

type RedisStream added in v0.0.38

type RedisStream struct {
	Client        *redis.Client
	Host          string
	Port          string
	Password      string
	ConsumerName  *string
	ConsumerGroup *string
	Key           string
	ValueKeys     []string
	MessageID     *string
	ClearOp       *StreamOp
	FailOp        *StreamOp
	// TLS
	EnableTLS   *bool
	TLSInsecure *bool
	TLSCert     *string
	TLSKey      *string
	TLSCA       *string
}

func (*RedisStream) Cleanup added in v0.0.38

func (d *RedisStream) Cleanup() error

func (*RedisStream) ClearWork added in v0.0.38

func (d *RedisStream) ClearWork() error

func (*RedisStream) GetWork added in v0.0.38

func (d *RedisStream) GetWork() (io.Reader, error)

func (*RedisStream) HandleFailure added in v0.0.38

func (d *RedisStream) HandleFailure() error

func (*RedisStream) Init added in v0.0.38

func (d *RedisStream) Init() error

func (*RedisStream) LoadEnv added in v0.0.38

func (d *RedisStream) LoadEnv(prefix string) error

func (*RedisStream) LoadFlags added in v0.0.38

func (d *RedisStream) LoadFlags() error

type StreamOp added in v0.0.38

type StreamOp string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL