Documentation ¶
Index ¶
- type UsageStats
- func (uss *UsageStats) GetConcurrentUsersStats(ctx context.Context) (*concurrentUsersStats, error)
- func (uss *UsageStats) GetUsageReport(ctx context.Context) (usagestats.Report, error)
- func (uss *UsageStats) GetUsageStatsId(ctx context.Context) string
- func (uss *UsageStats) RegisterMetricsFunc(fn usagestats.MetricsFunc)
- func (uss *UsageStats) RegisterSendReportCallback(c usagestats.SendReportCallbackFunc)
- func (uss *UsageStats) Run(ctx context.Context) error
- func (uss *UsageStats) ShouldBeReported(dsType string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsageStats ¶
type UsageStats struct { Cfg *setting.Cfg Bus bus.Bus SQLStore *sqlstore.SQLStore SocialService social.Service // contains filtered or unexported fields }
func ProvideService ¶
func (*UsageStats) GetConcurrentUsersStats ¶
func (uss *UsageStats) GetConcurrentUsersStats(ctx context.Context) (*concurrentUsersStats, error)
func (*UsageStats) GetUsageReport ¶
func (uss *UsageStats) GetUsageReport(ctx context.Context) (usagestats.Report, error)
func (*UsageStats) GetUsageStatsId ¶
func (uss *UsageStats) GetUsageStatsId(ctx context.Context) string
func (*UsageStats) RegisterMetricsFunc ¶
func (uss *UsageStats) RegisterMetricsFunc(fn usagestats.MetricsFunc)
func (*UsageStats) RegisterSendReportCallback ¶
func (uss *UsageStats) RegisterSendReportCallback(c usagestats.SendReportCallbackFunc)
func (*UsageStats) ShouldBeReported ¶
func (uss *UsageStats) ShouldBeReported(dsType string) bool
Click to show internal directories.
Click to hide internal directories.