kvclient

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: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KvClient

type KvClient struct {
	// contains filtered or unexported fields
}

func StartKvClient

func StartKvClient(id int, statFile string, addrs []config.NetAddress, timeout time.Duration, backoff time.Duration, beforeForce int, random bool) (*KvClient, error)

StartKvClient creates an Ios client and tries to connect to an Ios cluster If ID is -1 then a random one will be generated

func (*KvClient) Count

func (kvc *KvClient) Count() (int, error)

func (*KvClient) Delete

func (kvc *KvClient) Delete(key string) error

func (*KvClient) Get

func (kvc *KvClient) Get(key string) (string, error)

func (*KvClient) Print

func (kvc *KvClient) Print() (string, error)

func (*KvClient) Update

func (kvc *KvClient) Update(key string, value string) error

Jump to

Keyboard shortcuts

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