kvrpc

package
v0.0.0-...-060dca9 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Makehandler

func Makehandler(b GBucket) func(ctx fastrpc.HandlerCtx) fastrpc.HandlerCtx

func NewHandler

func NewHandler() fastrpc.HandlerCtx

func NewServer

func NewServer(b GBucket) *fastrpc.Server

Types

type Client

type Client struct {
	Cli fastrpc.Client
}

func (*Client) BucketDelete

func (c *Client) BucketDelete(bucket, key []byte) error

func (*Client) BucketGet

func (c *Client) BucketGet(bucket, key []byte) (bufferex.Binary, error)

func (*Client) BucketPut

func (c *Client) BucketPut(bucket, key, value []byte) error

func (*Client) BucketPutExpire

func (c *Client) BucketPutExpire(bucket, key, value []byte, expiresAt uint64) error

func (*Client) Init

func (c *Client) Init()

Jump to

Keyboard shortcuts

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