service

package
v0.0.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2021 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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 ProvideService(cfg *setting.Cfg, bus bus.Bus, sqlStore *sqlstore.SQLStore, pluginStore plugins.Store,
	socialService social.Service, kvStore kvstore.KVStore) *UsageStats

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) Run

func (uss *UsageStats) Run(ctx context.Context) error

func (*UsageStats) ShouldBeReported

func (uss *UsageStats) ShouldBeReported(dsType string) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL