graph

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GraphConnPools *backend.SafeRpcConnPools
)

连接池 node_address -> connection_pool

View Source
var (
	GraphNodeRing *rings.ConsistentHashNodeRing
)

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

Functions

func Delete

func Delete(params []*cmodel.GraphDeleteParam)

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 LastRaw

func LastRaw(para cmodel.GraphLastParam) (r *cmodel.GraphLastResp, err 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