api

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, Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Close_chan, Close_done_chan chan int

Functions

func GetLast

func GetLast(endpoint, counter string) *cmodel.RRDData

非法值: ts=0,value无意义

func GetLastRaw

func GetLastRaw(endpoint, counter string) *cmodel.RRDData

非法值: ts=0,value无意义

func HandleItems

func HandleItems(items []*cmodel.GraphItem) error

供外部调用、处理接收到的数据 的接口

func Start

func Start()

Types

type Graph

type Graph int

func (*Graph) BatchQuery

func (this *Graph) BatchQuery(params []cmodel.GraphQueryParam, resps *cmodel.GraphQueryResponseList) error

func (*Graph) GetRrd

func (this *Graph) GetRrd(key string, rrdfile *g.File) (err error)

func (*Graph) Info

func (this *Graph) Info(param cmodel.GraphInfoParam, resp *cmodel.GraphInfoResp) error

func (*Graph) Last

func (this *Graph) Last(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error

func (*Graph) LastBatch

func (this *Graph) LastBatch(params []cmodel.GraphLastParam, resps *cmodel.GraphLastRespList) error

func (*Graph) LastRaw

func (this *Graph) LastRaw(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error

func (*Graph) Ping

func (this *Graph) Ping(req cmodel.NullRpcRequest, resp *cmodel.SimpleRpcResponse) error

func (*Graph) Query

func (this *Graph) Query(param cmodel.GraphQueryParam, resp *cmodel.GraphQueryResponse) error

func (*Graph) Send

func (this *Graph) Send(items []*cmodel.GraphItem, resp *cmodel.SimpleRpcResponse) error

Jump to

Keyboard shortcuts

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