mock

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewMockClient

func NewMockClient(store map[string]string) (*Client, error)

func (Client) Add

func (c Client) Add(path string, value []byte, flags int32) (string, error)

func (Client) Client added in v1.0.4

func (c Client) Client() *zk.Conn

func (Client) Delete added in v1.0.2

func (c Client) Delete(path string) error

func (Client) GetValues

func (c Client) GetValues(keys []string) (vls map[string]string, err error)

func (Client) Lock added in v1.0.3

func (c Client) Lock(path string) *zk.Lock

func (Client) Modify added in v1.0.2

func (c Client) Modify(path string, value []byte) error

func (Client) WatchPrefix

func (c Client) WatchPrefix(keys []string, waitIndex uint64, stopChan chan bool) (uint64, error)

Jump to

Keyboard shortcuts

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