Documentation ¶
Index ¶
- Constants
- func Commit(seriesID interface{}, items []*dataobj.TsdbItem)
- func Fetch(filename string, seriesID interface{}, cf string, start, end int64, step int) ([]*dataobj.RRDData, error)
- func FlushFile(seriesID interface{}, items []*dataobj.TsdbItem) error
- func FlushFinishd2Disk()
- func FlushRRD(flushChunks map[interface{}][]*cache.Chunk)
- func Flushrrd(seriesID interface{}, items []*dataobj.TsdbItem) error
- func Init(cfg RRDSection)
- func InitChannel()
- func Persist()
- func ReadFile(filename string, seriesID interface{}) ([]byte, error)
- func Start()
- type File
- type RRDSection
Constants ¶
View Source
const ( ITEM_TO_SEND = 1 ITEM_TO_PULLRRD = 2 )
View Source
const ( IO_TASK_M_READ IO_TASK_M_WRITE IO_TASK_M_FLUSH IO_TASK_M_FETCH )
Variables ¶
This section is empty.
Functions ¶
func FlushFinishd2Disk ¶
func FlushFinishd2Disk()
func Init ¶
func Init(cfg RRDSection)
func InitChannel ¶
func InitChannel()
Types ¶
type RRDSection ¶
type RRDSection struct { Enabled bool `yaml:"enabled"` Migrate bool `yaml:"enabled"` Storage string `yaml:"storage"` Batch int `yaml:"batch"` Concurrency int `yaml:"concurrency"` Wait int `yaml:"wait"` RRA map[int]int `yaml:"rra"` IOWorkerNum int `yaml:"ioWorkerNum"` }
var ( Out_done_chan chan int Config RRDSection )
Click to show internal directories.
Click to hide internal directories.