Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `yaml:"host" env:"REDIS_HOST" env-description:"Redis host"`
Port string `yaml:"port" env:"REDIS_PORT" env-description:"Redis port"`
Pass string `env:"REDISPASS" env-description:"Redis user password"`
}
Config for redis connection TODO Set all default values
type KVStore ¶
type KVStore interface {
Set(key string, value interface{}, exp time.Duration) error
Get(key string) (string, error)
Close() error
}
KVStore represent the repositories
Click to show internal directories.
Click to hide internal directories.