telemetry

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: CC0-1.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ModuleName = "telemetry"
)

Variables

This section is empty.

Functions

func RunAdditionalOperations

func RunAdditionalOperations(cfg *Config) error

RunAdditionalOperations runs the module additional operations

Types

type Config

type Config struct {
	Port uint `yaml:"port"`
}

Config represents the configuration for the telemetry module

func NewConfig

func NewConfig(port uint) *Config

NewConfig allows to build a new Config instance

func ParseConfig

func ParseConfig(bytes []byte) (*Config, error)

ParseConfig allows to parse a byte array as a Config instance

type Module

type Module struct {
	// contains filtered or unexported fields
}

Module represents the telemetry module

func NewModule

func NewModule(cfg config.Config) *Module

NewModule returns a new Module implementation

func (*Module) Name

func (m *Module) Name() string

Name implements modules.Module

func (*Module) RunAdditionalOperations

func (m *Module) RunAdditionalOperations() error

RunAdditionalOperations implements modules.AdditionalOperationsModule

Jump to

Keyboard shortcuts

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