service

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 24 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

	RouteRegister routing.RouteRegister
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(cfg *setting.Cfg,
	kvStore kvstore.KVStore,
	routeRegister routing.RouteRegister,
	tracer tracing.Tracer,
	accesscontrol ac.AccessControl,
	bundleRegistry supportbundles.Service,
) (*UsageStats, 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) SetReadyToReport

func (uss *UsageStats) SetReadyToReport(context.Context)

Jump to

Keyboard shortcuts

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