Documentation ¶ Index ¶ func NewConsumerConn(key string, config contract.Config) (contract.Consumer, error) func NewProducerConn(config contract.Config) (contract.Producer, error) type Config func (config *Config) PoolConfig() contract.Pool func (config *Config) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewConsumerConn ¶ added in v0.0.7 func NewConsumerConn(key string, config contract.Config) (contract.Consumer, error) NewConsumerConn new consumer connection func NewProducerConn ¶ added in v0.0.7 func NewProducerConn(config contract.Config) (contract.Producer, error) NewProducerConn redis producer connection Types ¶ type Config ¶ type Config struct { Addr string Username string Password string DB int Pool *contract.Pool } func (*Config) PoolConfig ¶ added in v0.0.7 func (config *Config) PoolConfig() contract.Pool func (*Config) String ¶ func (config *Config) String() string Source Files ¶ View all Source files consumer.go option.go producer.go Click to show internal directories. Click to hide internal directories.