mocks

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

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	mock.Mock
}

func (*Connection) Children

func (_m *Connection) Children(p string) (children []string, err error)

func (*Connection) ChildrenW

func (_m *Connection) ChildrenW(path string, done <-chan struct{}) (children []string, event <-chan client.Event, err error)

func (*Connection) Close

func (_m *Connection) Close()

func (*Connection) Create

func (_m *Connection) Create(path string, node client.Node) error

func (*Connection) CreateDir

func (_m *Connection) CreateDir(path string) error

func (*Connection) CreateEphemeral

func (_m *Connection) CreateEphemeral(path string, node client.Node) (string, error)

func (*Connection) Delete

func (_m *Connection) Delete(path string) error

func (*Connection) EnsurePath

func (_m *Connection) EnsurePath(path string) error

func (*Connection) Exists

func (_m *Connection) Exists(path string) (bool, error)

func (*Connection) Get

func (_m *Connection) Get(path string, node client.Node) error

func (*Connection) GetW

func (_m *Connection) GetW(path string, node client.Node, done <-chan struct{}) (<-chan client.Event, error)

func (*Connection) ID

func (_m *Connection) ID() int

func (*Connection) NewLeader

func (_m *Connection) NewLeader(path string, data client.Node) client.Leader

func (*Connection) NewLock

func (_m *Connection) NewLock(path string) client.Lock

func (*Connection) NewTransaction

func (_m *Connection) NewTransaction() client.Transaction

func (*Connection) Set

func (_m *Connection) Set(path string, node client.Node) error

func (*Connection) SetID

func (_m *Connection) SetID(_a0 int)

func (*Connection) SetOnClose

func (_m *Connection) SetOnClose(_a0 func(int))

Jump to

Keyboard shortcuts

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