config

package
v0.0.0-...-b41a118 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Id              string
	MetricType      datapoint.MetricType
	MetricName      string
	Token           string
	IngestURL       string
	Dimensions      []string
	BufferSize      int
	ReportingRate   time.Duration
	LogLevel        zapcore.Level
	DebugLogEnabled bool
}

func (Config) String

func (c Config) String() string

type Factory

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

func NewFactory

func NewFactory(configValue ValueGetter) *Factory

func (*Factory) GetConfig

func (f *Factory) GetConfig() Config

type ValueGetter

type ValueGetter = func(key string) string

Jump to

Keyboard shortcuts

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