Documentation ¶
Index ¶
- Constants
- Variables
- func CommitByKey(key string)
- func Fetch(filename string, cf string, start, end int64, step int) ([]*cmodel.RRDData, error)
- func FlushAll(force bool)
- func FlushFile(filename string, items []*cmodel.GraphItem) error
- func FlushRRD(idx int, force bool)
- func GetCounter() (ret string)
- func PullByKey(key string)
- func ReadFile(filename string) ([]byte, error)
- func Start()
- type Net_task_t
Constants ¶
View Source
const ( NET_TASK_M_SEND NET_TASK_M_QUERY NET_TASK_M_PULL )
View Source
const ( FETCH_S_SUCCESS = iota FETCH_S_ERR FETCH_S_ISNOTEXIST SEND_S_SUCCESS SEND_S_ERR QUERY_S_SUCCESS QUERY_S_ERR CONN_S_ERR CONN_S_DIAL STAT_SIZE )
View Source
const ( RRA1PointCnt = 720 // 1m一个点存12h RRA5PointCnt = 576 // 5m一个点存2d RRA20PointCnt = 504 // 20m一个点存7d RRA180PointCnt = 766 // 3h一个点存3month RRA720PointCnt = 730 // 12h一个点存1year )
RRA.Point.Size
View Source
const ( IO_TASK_M_READ IO_TASK_M_WRITE IO_TASK_M_FLUSH IO_TASK_M_FETCH )
Variables ¶
View Source
var ( Consistent *consistent.Consistent Net_task_ch map[string]chan *Net_task_t )
View Source
var (
Out_done_chan chan int
)
Functions ¶
func CommitByKey ¶
func CommitByKey(key string)
func GetCounter ¶
func GetCounter() (ret string)
Types ¶
type Net_task_t ¶
Click to show internal directories.
Click to hide internal directories.