opt

package
v0.0.0-...-cb1a7a4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModuleName = "relay_metrics"

	OptionDebug          = "debug"
	OptionMetricsEnabled = "metrics_enabled"
	OptionMetricsAddress = "metrics_server_addr"

	DefaultOptionDebug          = false
	DefaultOptionMetricsEnabled = true
	DefaultOptionMetricsAddress = "0.0.0.0:3050"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool

	MetricsEnabled bool
	MetricsAddress string
}

func NewConfig

func NewConfig() (*Config, error)

func (*Config) Metrics

func (c *Config) Metrics() (*metric.Meter, error)

Jump to

Keyboard shortcuts

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