models

package
v0.0.0-...-1b79cdd Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const StateDir = "state"

Variables

View Source
var ErrUnknownCoordinator = errors.New("unknown coordinator")

Functions

func FrameworkIdPath

func FrameworkIdPath() string

Types

type Client

type Client interface {
	Create(path string, data []byte) error
	Update(path string, data []byte) error
	Delete(path string) error

	Read(path string, must bool) ([]byte, error)
	List(path string, must bool) ([]string, error)

	Close() error
}

func NewClient

func NewClient(coordinator string, addrs string, timeout time.Duration) (Client, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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