cliftondbclient

package
v0.0.0-...-e532b39 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyServerListErr   = errors.New("server list is empty")
	NotLeaderErr         = errors.New("not a leader")
	NotConnectedErr      = errors.New("not connected")
	PartitionUnavailable = errors.New("partition are not in quorum or leader maybe down")
)

Functions

This section is empty.

Types

type CliftonDbClient

type CliftonDbClient interface {
	Connect(serverList []string) error
	ConnectContext(ctx context.Context, serverList []string) error
	Close() error

	CliftonDbOps
}

func New

func New(options ...CliftonDbOptions) CliftonDbClient

type CliftonDbOps

type CliftonDbOps interface {
	Get(key string) (value []byte, err error)
	Put(key string, value [][]byte) (err error)
	Delete(key string) (err error)
}

type CliftonDbOptions

type CliftonDbOptions func(client *cliftonDbClient)

Jump to

Keyboard shortcuts

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