usagereporter

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Configs = configset.Set[Config]{
		Default: &Config{
			Enabled: false,
		},
		Dev: &Config{
			Enabled:  true,
			Endpoint: "http://localhost:9980",
			Interval: time.Hour * 24,
		},
	}
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled  bool          `koanf:"enabled"`
	Endpoint string        `koanf:"endpoint"`
	Interval time.Duration `koadnf:"interval_seconds"`
}

type UsageReporter

type UsageReporter interface {
	Start()
	Stop()
}

func New

func New(z *zap.Logger, cfg *Config) (UsageReporter, error)

Jump to

Keyboard shortcuts

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