Documentation
¶
Index ¶
- type RedisDriver
- func (rd *RedisDriver) GetNodes(ctx context.Context) (nodes []string, err error)
- func (rd *RedisDriver) Init(serviceName string, opts ...commons.Option)
- func (rd *RedisDriver) NodeID() string
- func (rd *RedisDriver) Start(ctx context.Context) (err error)
- func (rd *RedisDriver) Stop(ctx context.Context) (err error)
- func (rd *RedisDriver) WithOption(opt commons.Option) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisDriver ¶
func NewDriver ¶
func NewDriver(redisClient redis.UniversalClient) *RedisDriver
func (*RedisDriver) GetNodes ¶
func (rd *RedisDriver) GetNodes(ctx context.Context) (nodes []string, err error)
func (*RedisDriver) NodeID ¶
func (rd *RedisDriver) NodeID() string
func (*RedisDriver) WithOption ¶
func (rd *RedisDriver) WithOption(opt commons.Option) (err error)
Click to show internal directories.
Click to hide internal directories.