Documentation
¶
Index ¶
- type Config
- type Module
- func (m *Module) Configure() *typcore.Configuration
- func (m *Module) Destroy() []*typdep.Invocation
- func (m *Module) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
- func (m *Module) Prepare() []*typdep.Invocation
- func (m *Module) Provide() []*typdep.Constructor
- func (m *Module) WithHost(host string) *Module
- func (m *Module) WithPort(port string) *Module
- func (m *Module) WithPrefix(prefix string) *Module
- func (m *Module) WithdockerImage(dockerImage string) *Module
- func (m *Module) WithdockerName(dockerName string) *Module
- func (m *Module) Withpassword(password string) *Module
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 Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module of Redis
func (*Module) Configure ¶ added in v0.8.9
func (m *Module) Configure() *typcore.Configuration
Configure Redis
func (*Module) Destroy ¶ added in v0.8.9
func (m *Module) Destroy() []*typdep.Invocation
Destroy dependencies
func (*Module) DockerCompose ¶ added in v0.8.9
func (m *Module) DockerCompose(version typdocker.Version) *typdocker.ComposeObject
DockerCompose template
func (*Module) Prepare ¶ added in v0.8.9
func (m *Module) Prepare() []*typdep.Invocation
Prepare the module
func (*Module) Provide ¶ added in v0.8.9
func (m *Module) Provide() []*typdep.Constructor
Provide dependencies
func (*Module) WithPrefix ¶ added in v0.8.23
WithPrefix to return module with new prefix
func (*Module) WithdockerImage ¶ added in v0.8.23
WithdockerImage to return module with new docker image
func (*Module) WithdockerName ¶ added in v0.8.23
WithdockerName to return module with new docker name
func (*Module) Withpassword ¶ added in v0.8.23
Withpassword to return module with new password
Click to show internal directories.
Click to hide internal directories.