config

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfiguration

func ReadConfiguration() error

func ReadFlags

func ReadFlags()

Types

type Config

type Config struct {
	Service    ServiceConfig
	Server     ServerConfig
	OpenCensus OpenCensusConfig
	Prometheus PrometheusConfig
}
var (
	AppConfig Config
)

type OpenCensusConfig

type OpenCensusConfig struct {
	Enabled   bool
	StatsPage string
	Address   string
}

type PrometheusConfig

type PrometheusConfig struct {
	Enabled     bool
	MetricsPath string
}

type ServerConfig

type ServerConfig struct {
	ListenAddress   string
	GinMode         string
	DevelopmentMode bool
}

type ServiceConfig

type ServiceConfig struct {
	Address string
}

Jump to

Keyboard shortcuts

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