api

package
Version: v0.0.0-...-2e9657c Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2016 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) 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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL