client

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: BSD-3-Clause Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(conn grpc.ClientConnInterface) *Client

func (*Client) Collection

func (c *Client) Collection(key string) *Collection

type Collection

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

func (*Collection) Del

func (c *Collection) Del(cc context.Context, key string) error

func (*Collection) Exec

func (c *Collection) Exec(cc context.Context, code string, data interface{}) (string, error)

func (*Collection) Get

func (c *Collection) Get(cc context.Context, key string) ([]byte, error)

func (*Collection) GetObject

func (c *Collection) GetObject(cc context.Context, key string) (interface{}, error)

func (*Collection) MergeObject

func (c *Collection) MergeObject(cc context.Context, key string, object interface{}) error

func (*Collection) Put

func (c *Collection) Put(cc context.Context, key string, data []byte) error

func (*Collection) PutObject

func (c *Collection) PutObject(cc context.Context, key string, object interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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