api

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2015 License: 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) 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