graph

package
v3.14.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GraphConnPools *spool.SafeRpcConnPools
)

连接池 node_address -> connection_pool

View Source
var (
	GraphNodeRing *rings.ConsistentHashNodeRing
)

服务节点的一致性哈希环 pk -> node

Functions

func GenQParam

func GenQParam(endpoint string, counter string, consolFun string, stime int64, etime int64, step int) cmodel.GraphQueryParam

func Hosts

func Hosts() []string

func Info

func Info(para cmodel.GraphInfoParam) (resp *cmodel.GraphFullyInfo, err error)

func Last

func Last(para cmodel.GraphLastParam) (r *cmodel.GraphLastResp, err error)

func LastBatch

func LastBatch(para []cmodel.GraphLastParam) (results []cmodel.GraphLastResp, errs []error)

func LastRaw

func LastRaw(para cmodel.GraphLastParam) (r *cmodel.GraphLastResp, err error)

func QueryBatch

func QueryBatch(para []cmodel.GraphQueryParam) (results []cmodel.GraphQueryResponse, errs []error)

func QueryOne

func QueryOne(para cmodel.GraphQueryParam) (resp *cmodel.GraphQueryResponse, err error)

func Start

func Start(addrs map[string]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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