config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig()

LoadConfig ...

Types

type Config

type Config struct {
	AppHost    string `arg:"-h, env:APP_HOST" default:"0.0.0.0"`
	AppPort    string `arg:"-p, env:APP_PORT" default:"8080"`
	MetricPort string `arg:"-m, env:METRIC_PORT" default:"9090"`
}

Config holds a configuration variables.

func GetConfig

func GetConfig() *Config

func (*Config) GetAppNetListenAddr

func (this *Config) GetAppNetListenAddr() string

func (*Config) GetMetricNetListenAddr

func (this *Config) GetMetricNetListenAddr() string

Jump to

Keyboard shortcuts

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