Documentation ¶
Index ¶
- Constants
- func Commit(seriesID string, items []*dataobj.TsdbItem)
- func Fetch(filename string, seriesID string, cf string, start, end int64, step int) ([]*dataobj.RRDData, error)
- func FlushFile(seriesID string, items []*dataobj.TsdbItem) error
- func FlushFinishd2Disk()
- func FlushRRD(flushChunks map[string][]*cache.Chunk)
- func Flushrrd(seriesID string, items []*dataobj.TsdbItem) error
- func Init(cfg RRDSection)
- func InitChannel()
- func Persist()
- func ReadFile(filename string, seriesID string) ([]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.