config

package
v0.0.0-...-de70ca6 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Log config
	LogLevel int `json:"log_level"`

	// Instrumentation config
	StatsDHostAndPort string `json:"stats_d_host_and_port"`

	// Rate Limiter config
	RateLimiterMaxConcurrent int `json:"rate_limiter_max_concurrent"`
	// contains filtered or unexported fields
}

Config is the result of loading config from a file

func LoadFromFile

func LoadFromFile(path string) (*Config, error)

LoadFromFile loads the config from the supplied path

func (*Config) Logger

func (c *Config) Logger() *logging.Logger

func (*Config) Stats

func (c *Config) Stats() *stats.Collector

Jump to

Keyboard shortcuts

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