Versions in this module Expand all Collapse all v0 v0.1.1 Aug 29, 2024 v0.1.0 Aug 29, 2024 Changes in this version + var CreateClient = DefaultNewClient1 + func DefaultNewClient1(c *ClientConfig, cc *Config) (clt *redis.Client, err error) + type Client struct + ApiLog func(args [][2]interface{}) func() + Cfg ClientConfig + Client *redis.Client + func (c *Client) CliFlags(name string) []cli.Flag + func (c *Client) Load(r *Component, name string, cfg *Config, appCfg gsf.Config, ...) (err error) + func (c *Client) Ref() *Component + type ClientConfig struct + DB int + Host string + MaxConnNum int + MinIdleNum int + Pwd string + type Component struct + Cfg Config + Clts map[string]*Client + DSNPrint bool + func (c *Component) CliFlags() []cli.Flag + func (c *Component) Close(_ logger.Interface, _ gsf.Config) (err error) + func (c *Component) Init(log logger.Interface, cfg gsf.Config) error + func (c *Component) Run(log logger.Interface, cfg gsf.Config) error + type Config struct + IdleCheckTime int + MaxReadTime int + MaxRequestTime int + MaxWriteTime int + SlowThreshold int