api

package
v0.0.0-...-e624764 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2016 License: Apache-2.0 Imports: 15 Imported by: 6

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) 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) 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