config

package
v2.0.0-...-eaed07a Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Env        string `koanf:"env"`
	LogsLevel  uint8  `koanf:"logs_level"`
	HTTPServer `koanf:"http_server"`
}

func New

func New() (*Config, error)

type HTTPServer

type HTTPServer struct {
	Address       string        `koanf:"address"`
	Timeout       time.Duration `koanf:"timeout"`
	IdleTimeout   time.Duration `koanf:"idle_timeout"`
	Mode          string        `koanf:"mode"`
	TemplatesPath string        `koanf:"templates_path"`
}

Jump to

Keyboard shortcuts

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