ezd

package
v0.0.0-...-5a0bf87 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTimeout = 10 * time.Second
)

Variables

View Source
var EmptyNodeErr = errors.New("client: empty node")

Functions

func DisableDebug

func DisableDebug()

func EnableDebug

func EnableDebug()

func IsKeyNotFound

func IsKeyNotFound(e error) bool

Types

type Client

type Client interface {
	Exists(key string) error
	Keys(pre string) ([]string, error)
	Mkdir(path string) error

	Set(key, value string) error
	Get(key string) (string, error)
	Delete(key string) error
}

func New

func New(endpoints []string, timeout time.Duration) (Client, error)

Jump to

Keyboard shortcuts

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