Documentation ¶
Index ¶
Constants ¶
View Source
const ConfigFileName = "redis-config.toml" // ConfigFileName
Variables ¶
View Source
var ( Provider = wire.NewSet(Loading) // Provider ConfigFullPath = "" // ConfigFullPath )
Functions ¶
This section is empty.
Types ¶
type RedisConfig ¶
type RedisConfig struct { Addr string `json:"addr"` Password string `json:"password"` DB int `json:"db"` TTL time.Duration `json:"ttl"` }
func Default ¶
func Default() *RedisConfig
func Loading ¶
func Loading() (*RedisConfig, error)
Click to show internal directories.
Click to hide internal directories.