Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheManager ¶
type CacheManager interface { SearchStats() SearchStatsCache Close() }
func NewCacheManagerImpl ¶
type CacheManagerImpl ¶
type CacheManagerImpl struct {
// contains filtered or unexported fields
}
func (*CacheManagerImpl) Close ¶
func (cm *CacheManagerImpl) Close()
func (*CacheManagerImpl) SearchStats ¶
func (cm *CacheManagerImpl) SearchStats() SearchStatsCache
type ClassByTypeStats ¶
type Provider ¶
type Provider interface { Refreshable String() string }
type Refreshable ¶
type Refreshable interface {
Refresh() error
}
type SearchStatsCache ¶
type SearchStatsCache interface { Provider IsTagWithUnits(uid string, cts ...string) bool IsSourceWithUnits(uid string, cts ...string) bool }
func NewSearchStatsCacheImpl ¶
func NewSearchStatsCacheImpl(mdb *sql.DB) SearchStatsCache
type SearchStatsCacheImpl ¶
type SearchStatsCacheImpl struct {
// contains filtered or unexported fields
}
func (*SearchStatsCacheImpl) IsSourceWithUnits ¶
func (ssc *SearchStatsCacheImpl) IsSourceWithUnits(uid string, cts ...string) bool
func (*SearchStatsCacheImpl) IsTagWithUnits ¶
func (ssc *SearchStatsCacheImpl) IsTagWithUnits(uid string, cts ...string) bool
func (*SearchStatsCacheImpl) Refresh ¶
func (ssc *SearchStatsCacheImpl) Refresh() error
func (*SearchStatsCacheImpl) String ¶
func (ssc *SearchStatsCacheImpl) String() string
type StatsTree ¶
type StatsTree struct {
// contains filtered or unexported fields
}
func NewStatsTree ¶
func NewStatsTree() *StatsTree
Click to show internal directories.
Click to hide internal directories.