Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RedisConfig ¶
type RedisConfig struct { Url string User string `env:"USER" envDefault:"default"` Password string `env:"PASSWORD"` Host string `env:"HOST"` Port string `env:"PORT" envDefault:"14552"` }
func (RedisConfig) Validate ¶
func (redisConfig RedisConfig) Validate() error
type RedisService ¶
type RedisService struct {
// contains filtered or unexported fields
}
func NewRedisService ¶
func NewRedisService(redisConfig RedisConfig, logger logr.Logger) (*RedisService, error)
func (*RedisService) Client ¶
func (redisService *RedisService) Client() *redis.Client
func (*RedisService) Close ¶
func (redisService *RedisService) Close() error
type RedisServicer ¶
type RedisServicer interface { Client() *redis.Client Close() error }
Click to show internal directories.
Click to hide internal directories.