Documentation
¶
Index ¶
- type Base
- type CMap
- func (m CMap) Add(key string, value int64)
- func (m CMap) Clear() int
- func (m CMap) Count() int
- func (m CMap) Exists(key string) bool
- func (m CMap) Expire(exit chan struct{}, ttl time.Duration) (int, int64)
- func (m CMap) ExpireWorker(exit chan struct{}, ttl time.Duration)
- func (m CMap) GetShard(key string) *CMapShard
- func (m CMap) Merge(keys map[string]bool, value int64)
- type CMapShard
- type Config
- type Points
- type PointsReverse
- type Series
- type Tree
- type Uploader
- type UploaderWithReset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶ added in v0.7.0
func (*Base) MarkAsFinished ¶ added in v0.7.0
func (*Base) RemoveFromQueue ¶ added in v0.7.0
type CMap ¶
type CMap []*CMapShard
A "thread" safe map of type string:Anything. To avoid lock bottlenecks this map is dived to several (shardCount) map shards.
func (CMap) ExpireWorker ¶ added in v0.7.0
type CMapShard ¶
type CMapShard struct { sync.RWMutex // Read Write mutex, guards access to internal map. // contains filtered or unexported fields }
A "thread" safe string to anything map.
type Config ¶ added in v0.7.0
type Config struct { Type string `toml:"type"` // points, series, points-reverse, series-reverse TableName string `toml:"table"` // keep empty for same as key Timeout *config.Duration `toml:"timeout"` Date string `toml:"date"` // for tree table Threads int `toml:"threads"` URL string `toml:"url"` CacheTTL *config.Duration `toml:"cache-ttl"` TreeDate time.Time `toml:"-"` }
type PointsReverse ¶ added in v0.7.0
type PointsReverse struct {
*Base
}
func NewPointsReverse ¶ added in v0.7.0
func NewPointsReverse(base *Base) *PointsReverse
type Series ¶ added in v0.7.0
type Series struct {
// contains filtered or unexported fields
}
func NewSeriesReverse ¶ added in v0.7.0
type UploaderWithReset ¶ added in v0.7.0
type UploaderWithReset interface {
Reset()
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.