Documentation ¶
Index ¶
- type Client
- type Collection
- func (c *Collection) Del(cc context.Context, key string) error
- func (c *Collection) Exec(cc context.Context, code string, data interface{}) (string, error)
- func (c *Collection) Get(cc context.Context, key string) ([]byte, error)
- func (c *Collection) GetObject(cc context.Context, key string) (interface{}, error)
- func (c *Collection) MergeObject(cc context.Context, key string, object interface{}) error
- func (c *Collection) Put(cc context.Context, key string, data []byte) error
- func (c *Collection) PutObject(cc context.Context, key string, object interface{}) error
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) 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
Click to show internal directories.
Click to hide internal directories.