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 -
Click to show internal directories.
Click to hide internal directories.