zk

package
v0.0.0-...-ee9fa08 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnConfig

type ConnConfig = zk.ConnConfig

type Store

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

func New

func New(connCfg *ConnConfig) (*Store, error)

func NewWithConn

func NewWithConn(conn zk.Conn, basePath string) (*Store, error)

func (*Store) Add

func (s *Store) Add(namespace, typ, key string, value []byte) error

func (*Store) Del

func (s *Store) Del(namespace, typ, key string) error

func (*Store) Exist

func (s *Store) Exist(namespace, typ, key string) bool

func (*Store) Get

func (s *Store) Get(namespace, typ, key string) ([]byte, error)

func (*Store) GetKeys

func (s *Store) GetKeys(namespace, typ string) ([]string, error)

func (*Store) Start

func (s *Store) Start() error

func (*Store) Stop

func (s *Store) Stop()

func (*Store) Update

func (s *Store) Update(namespace, typ, key string, value []byte) error

Jump to

Keyboard shortcuts

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