ankadbclient

package
v0.3.33 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoConn - ankadb client no conn
	ErrNoConn = errors.New("ankadb client no conn")
)

Functions

This section is empty.

Types

type AnkaClient

type AnkaClient interface {
	// Start - start a client
	Start(addr string) error
	// Stop - stop a client
	Stop() error

	// Query - query a GraphQL
	Query(ctx context.Context, request string, varval string) (*pb.ReplyQuery, error)

	// Get - get value with the key
	Get(ctx context.Context, dbname string, key string) (*pb.ReplyGetValue, error)
	// Set - set value with the key
	Set(ctx context.Context, dbname string, key string, value []byte) (*pb.ReplySetValue, error)
}

AnkaClient -

func NewClient

func NewClient() AnkaClient

NewClient - new a client

Jump to

Keyboard shortcuts

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