Documentation
¶
Index ¶
- type Config
- type Redis
- func (m *Redis) Commands(c *typbuildtool.Context) []*cli.Command
- func (m *Redis) Configure(loader typcfg.Loader) *typcfg.Detail
- func (m *Redis) Destroy() []*typdep.Invocation
- func (m *Redis) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
- func (m *Redis) Prepare() []*typdep.Invocation
- func (m *Redis) Provide() []*typdep.Constructor
- func (m *Redis) WithPrefix(prefix string) *Redis
- func (m *Redis) WithdockerImage(dockerImage string) *Redis
- func (m *Redis) WithdockerName(dockerName string) *Redis
- func (m *Redis) Withhost(host string) *Redis
- func (m *Redis) Withpassword(password string) *Redis
- func (m *Redis) Withport(port string) *Redis
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `required:"true" default:"localhost"`
Port string `required:"true" default:"6379"`
Password string `default:"redispass"`
DB int `default:"0"`
PoolSize int `envconfig:"POOL_SIZE" default:"20" required:"true"`
DialTimeout time.Duration `envconfig:"DIAL_TIMEOUT" default:"5s" required:"true"`
ReadWriteTimeout time.Duration `envconfig:"READ_WRITE_TIMEOUT" default:"3s" required:"true"`
IdleTimeout time.Duration `envconfig:"IDLE_TIMEOUT" default:"5m" required:"true"`
IdleCheckFrequency time.Duration `envconfig:"IDLE_CHECK_FREQUENCY" default:"1m" required:"true"`
MaxConnAge time.Duration `envconfig:"MAX_CONN_AGE" default:"30m" required:"true"`
}
Config is Redis Configuration
type Redis ¶ added in v0.8.20
type Redis struct {
// contains filtered or unexported fields
}
Redis of Redis
func (*Redis) Commands ¶ added in v0.8.20
func (m *Redis) Commands(c *typbuildtool.Context) []*cli.Command
Commands of module
func (*Redis) Destroy ¶ added in v0.8.20
func (m *Redis) Destroy() []*typdep.Invocation
Destroy dependencies
func (*Redis) DockerCompose ¶ added in v0.8.20
func (m *Redis) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
DockerCompose template
func (*Redis) Prepare ¶ added in v0.8.20
func (m *Redis) Prepare() []*typdep.Invocation
Prepare the module
func (*Redis) Provide ¶ added in v0.8.20
func (m *Redis) Provide() []*typdep.Constructor
Provide dependencies
func (*Redis) WithPrefix ¶ added in v0.8.20
WithPrefix to return module with new prefix
func (*Redis) WithdockerImage ¶ added in v0.8.20
WithdockerImage to return module with new docker image
func (*Redis) WithdockerName ¶ added in v0.8.20
WithdockerName to return module with new docker name
func (*Redis) Withpassword ¶ added in v0.8.20
Withpassword to return module with new password
Click to show internal directories.
Click to hide internal directories.