config

package
v2.3.55 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConfig

type ServiceConfig struct {
	LogLevel  string `envconfig:"LOGGER_LEVEL" default:"debug"`
	LogFormat string `envconfig:"LOGGER_FORMAT" default:"console"`

	Bind        string `envconfig:"BIND_SERVICE" default:":9000"`
	MetricsBind string `envconfig:"BIND_METRICS" default:":9090"`
	HealthBind  string `envconfig:"BIND_HEALTH" default:":9091"`
}

func Service

func Service() ServiceConfig

func (ServiceConfig) Logger

func (cfg ServiceConfig) Logger() (logger zerolog.Logger)

Jump to

Keyboard shortcuts

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