Documentation ¶
Index ¶
- Constants
- type CountRepo
- func (repo *CountRepo) BatchInsert(batch []*_types.Count) error
- func (repo *CountRepo) Find(filter types.Filter, agg string) (types.Counts, error)
- func (repo *CountRepo) Insert(count *_types.Count) error
- func (repo *CountRepo) StartBatcher()
- func (repo *CountRepo) StatsByDashboard(dashId int) ([]*types.DashStatRow, error)
- func (repo *CountRepo) StatsByDashboardCached(dashId int) ([]*types.DashStatRow, error)
- func (repo *CountRepo) StatsByLogname(dashId int, logname string) ([]*types.DashStatRow, error)
- func (repo *CountRepo) StatsByLognameCached(dashId int, logname string) ([]*types.DashStatRow, error)
- func (repo *CountRepo) StopBatcher()
- func (repo *CountRepo) Store(count *_types.Count) error
Constants ¶
View Source
const ( AGG_MINUTE = "m" AGG_5MINUTES = "5m" AGG_HOUR = "h" AGG_DAY = "d" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CountRepo ¶ added in v1.20.18
type CountRepo struct {
// contains filtered or unexported fields
}
func NewCountRepo ¶ added in v1.20.18
func NewCountRepo() *CountRepo
func (*CountRepo) BatchInsert ¶ added in v1.20.19
func (*CountRepo) StartBatcher ¶ added in v1.20.27
func (repo *CountRepo) StartBatcher()
func (*CountRepo) StatsByDashboard ¶ added in v1.20.18
func (repo *CountRepo) StatsByDashboard(dashId int) ([]*types.DashStatRow, error)
func (*CountRepo) StatsByDashboardCached ¶ added in v1.20.18
func (repo *CountRepo) StatsByDashboardCached(dashId int) ([]*types.DashStatRow, error)
func (*CountRepo) StatsByLogname ¶ added in v1.20.18
func (*CountRepo) StatsByLognameCached ¶ added in v1.20.18
func (*CountRepo) StopBatcher ¶ added in v1.20.20
func (repo *CountRepo) StopBatcher()
Click to show internal directories.
Click to hide internal directories.