Documentation ¶
Index ¶
- func GrpcClient(cf *GrpcConfig, def *Defaults) (acproto.ACrpcClient, func(), error)
- type C
- func (c *C) Close()
- func (c *C) Get(d *Datum) (*Datum, error)
- func (c *C) GetRange(mapname string, key0 string, key1 string, ver0 uint64, ver1 uint64) ([]*Datum, error)
- func (c *C) GetRingConf(db string, dc string) (*RingConf, error)
- func (c *C) GetServersAll() ([]*info.Server, error)
- func (c *C) GetServersInfo(sys string, env string, host string, dc string, id string) ([]*info.Server, error)
- func (c *C) MGet(d []*Datum) ([]*Datum, error)
- func (c *C) Put(d *Datum) (int, error)
- func (c *C) RPC() acproto.ACrpcClient
- type Datum
- type Defaults
- type GrpcConfig
- type RingConf
- type RingShard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GrpcClient ¶
func GrpcClient(cf *GrpcConfig, def *Defaults) (acproto.ACrpcClient, func(), error)
Types ¶
type C ¶
type C struct {
// contains filtered or unexported fields
}
func New ¶
func New(cf *GrpcConfig) (*C, error)
func (*C) GetServersInfo ¶
Click to show internal directories.
Click to hide internal directories.