client

package
v0.0.0-...-f2f8fbd Latest Latest
Warning

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

Go to latest
Published: May 14, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

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 implements a client to talk to Raft servers

func NewClient

func NewClient(config string, prefReplica int) *Client

NewClient returns a new client

func (*Client) Get

func (c *Client) Get(key string) string

Get returns the value with key

func (*Client) Put

func (c *Client) Put(key string, value string)

Put updates the value with key

Jump to

Keyboard shortcuts

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