client

package
v0.0.0-...-8c4f4f5 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DKVClient

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

func New

func New(host, port string) *DKVClient

func (*DKVClient) DeleteValue

func (d *DKVClient) DeleteValue(ctx context.Context, key string) error

func (*DKVClient) GetClient

func (d *DKVClient) GetClient() (proto.DKVClient, error)

func (*DKVClient) GetValue

func (d *DKVClient) GetValue(ctx context.Context, key string) ([]byte, error)

func (*DKVClient) RaftJoin

func (d *DKVClient) RaftJoin(ctx context.Context, nodeId, nodeAddress string) error

func (*DKVClient) RaftLeave

func (d *DKVClient) RaftLeave(ctx context.Context, nodeId string) error

func (*DKVClient) RaftState

func (d *DKVClient) RaftState(ctx context.Context) (state string, err error)

func (*DKVClient) SetValue

func (d *DKVClient) SetValue(ctx context.Context, key string, value []byte) error

Jump to

Keyboard shortcuts

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