Documentation ¶
Index ¶
- Variables
- func GenQParam(endpoint string, counter string, consolFun string, stime int64, etime int64, ...) cmodel.GraphQueryParam
- func Hosts() []string
- func Info(para cmodel.GraphInfoParam) (resp *cmodel.GraphFullyInfo, err error)
- func Last(para cmodel.GraphLastParam) (r *cmodel.GraphLastResp, err error)
- func LastBatch(para []cmodel.GraphLastParam) (results []cmodel.GraphLastResp, errs []error)
- func LastRaw(para cmodel.GraphLastParam) (r *cmodel.GraphLastResp, err error)
- func QueryBatch(para []cmodel.GraphQueryParam) (results []cmodel.GraphQueryResponse, errs []error)
- func QueryOne(para cmodel.GraphQueryParam) (resp *cmodel.GraphQueryResponse, err error)
- func Start(addrs map[string]string)
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 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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.