dependencies

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis interface {
	Context() context.Context
	Handler() *redis.Client
}

func NewRedisClient

func NewRedisClient(c RedisClientConfig) Redis

type RedisClient

type RedisClient struct {
	// contains filtered or unexported fields
}

func (*RedisClient) Context

func (c *RedisClient) Context() context.Context

Context for current client instance

func (*RedisClient) Handler

func (c *RedisClient) Handler() *redis.Client

Handler redis requested action

type RedisClientConfig

type RedisClientConfig struct {
	Host     string
	Port     int
	Password string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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