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) RunBatcher() *CountRepo
- 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() error
- func (repo *CountRepo) Store(count *_types.Count) error
Constants ¶
View Source
const ( AggMinute = "m" Agg5Minutes = "5m" AggHour = "h" AggDay = "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() (result *CountRepo)
func (*CountRepo) BatchInsert ¶ added in v1.20.19
func (*CountRepo) RunBatcher ¶ added in v1.20.20
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
Click to show internal directories.
Click to hide internal directories.