client

package
v0.0.0-...-fc1e718 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2017 License: MIT Imports: 12 Imported by: 5

Documentation

Overview

Package client provides Ios client side code for connecting to an Ios cluster

Index

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()

func (*Client) SubmitRequest

func (c *Client) SubmitRequest(text string, readonly bool) (string, error)

Directories

Path Synopsis
Package kvclient provides a client for interacting with a key-value type Ios cluster
Package kvclient provides a client for interacting with a key-value type Ios cluster

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL