client

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 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 string) error

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

func (*Client) Get

func (c *Client) Get(key string) (interface{}, error)

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

func (*Client) Put

func (c *Client) Put(key string, value interface{}) error

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

func (*Client) Type added in v1.0.8

func (c *Client) Type(key string) (string, error)

Jump to

Keyboard shortcuts

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