mocketcd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockEtcdServer

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

func NewMockEtcdServer

func NewMockEtcdServer(port string, t *testing.T) (*MockEtcdServer, error)

func (*MockEtcdServer) Client

func (s *MockEtcdServer) Client() *clientv3.Client

func (*MockEtcdServer) Get

func (s *MockEtcdServer) Get(ctx context.Context, key string) ([]byte, error)

func (*MockEtcdServer) Put

func (s *MockEtcdServer) Put(ctx context.Context, key string, val []byte) error

func (*MockEtcdServer) Stop

func (s *MockEtcdServer) Stop()

Jump to

Keyboard shortcuts

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