Documentation ¶
Index ¶
- Variables
- func GetLast(endpoint, counter string) *cmodel.RRDData
- func GetLastRaw(endpoint, counter string) *cmodel.RRDData
- func HandleItems(items []*cmodel.GraphItem) error
- func Start()
- type Graph
- func (this *Graph) Delete(params []*cmodel.GraphDeleteParam, resp *cmodel.GraphDeleteResp) error
- func (this *Graph) GetRrd(key string, rrdfile *g.File) (err error)
- func (this *Graph) Info(param cmodel.GraphInfoParam, resp *cmodel.GraphInfoResp) error
- func (this *Graph) Last(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error
- func (this *Graph) LastRaw(param cmodel.GraphLastParam, resp *cmodel.GraphLastResp) error
- func (this *Graph) Ping(req cmodel.NullRpcRequest, resp *cmodel.SimpleRpcResponse) error
- func (this *Graph) Query(param cmodel.GraphQueryParam, resp *cmodel.GraphQueryResponse) error
- func (this *Graph) Send(items []*cmodel.GraphItem, resp *cmodel.SimpleRpcResponse) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Close_chan, Close_done_chan chan int
Functions ¶
Types ¶
type Graph ¶
type Graph int
func (*Graph) Delete ¶
func (this *Graph) Delete(params []*cmodel.GraphDeleteParam, resp *cmodel.GraphDeleteResp) error
从内存索引、MySQL中删除counter,并从磁盘上删除对应rrd文件
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
Click to show internal directories.
Click to hide internal directories.