Documentation ¶ Index ¶ func NewFactory() component.Factory type Client func NewClient(rawConfig string) (*Client, error) func (c *Client) Instance() component.Instance func (c *Client) Start() error func (c *Client) Stop() error type Config func (c Config) Marshal() ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewFactory ¶ added in v1.0.15 func NewFactory() component.Factory Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(rawConfig string) (*Client, error) func (*Client) Instance ¶ func (c *Client) Instance() component.Instance func (*Client) Start ¶ func (c *Client) Start() error func (*Client) Stop ¶ func (c *Client) Stop() error type Config ¶ added in v1.0.15 type Config struct { Name string `yaml:"name"` Addr string `yaml:"addr"` Password string `yaml:"password"` DB int `yaml:"db"` PoolSize int `yaml:"pool_size"` } func (Config) Marshal ¶ added in v1.0.15 func (c Config) Marshal() ([]byte, error) Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.