Documentation ¶
Overview ¶
Package client provides Ios client side code for connecting to an Ios cluster
Index ¶
- type Client
- func StartClient(id int, statsFilename string, addrs []config.NetAddress, timeout time.Duration, ...) (*Client, error)
- func StartClientFromConfig(id int, statFile string, conf config.Config, addresses []config.NetAddress) (*Client, error)
- func StartClientFromConfigFile(id int, statFile string, configFile string, addressFile string) (*Client, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client holds the data associated with a client
func StartClient ¶
func StartClient(id int, statsFilename string, addrs []config.NetAddress, timeout time.Duration, backoff time.Duration, beforeForce int, random bool) (*Client, error)
StartClient creates an Ios client and tries to connect to an Ios cluster If ID is -1 then a random one will be generated
func StartClientFromConfig ¶
func StartClientFromConfig(id int, statFile string, conf config.Config, addresses []config.NetAddress) (*Client, error)
StartClientFromConfig is the same as StartClientFromConfigFile but for config structs instead of files
func StartClientFromConfigFile ¶
func StartClientFromConfigFile(id int, statFile string, configFile string, addressFile string) (*Client, error)
StartClientFromConfigFile creates an Ios client If ID is -1 then a random one will be generated
func (*Client) StopClient ¶
func (c *Client) StopClient()
Click to show internal directories.
Click to hide internal directories.