opt

package
v0.0.0-...-c2ede47 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ModuleName = "relay_metrics"

	OptionDebug                  = "debug"
	OptionMetricsEnabled         = "metrics_enabled"
	OptionMetricsAddress         = "metrics_server_addr"
	OptionEventFilterTypeNormal  = "event_filter_type_normal"
	OptionEventFilterTypeWarning = "event_filter_type_warning"

	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

	EventFilters map[string]*model.EventFilter
}

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