client

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2023 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 Client

type Client struct {
	Addr string // db server address
}

Client is a grpc client

func (*Client) Del

func (c *Client) Del(key []byte) error

Del deletes a key-value pair from the db by client api

func (*Client) Get

func (c *Client) Get(key []byte) ([]byte, error)

Get gets a value by key from the db by client api

func (*Client) Keys

func (c *Client) Keys() ([][]byte, error)

Keys gets all keys from the db by client api

func (*Client) Put

func (c *Client) Put(key []byte, value []byte) error

Put puts a key-value pair into the db by client api

Jump to

Keyboard shortcuts

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