config

package
v0.0.0-...-db2bfc3 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (*config, error)

Types

type Accrual

type Accrual struct {
	Address string `koanf:"address"`
}

type App

type App struct {
	LogsLevel     string `koanf:"logs_level"`
	SecretKey     string `koanf:"secret_key"`
	TokenName     string `koanf:"token_name"`
	TokenLifeTime int    `koanf:"token_lifetime"`
}

type Httpserver

type Httpserver struct {
	Mode           string `koanf:"mode"`
	Address        string `koanf:"address"`
	MaxHeaderBytes int    `koanf:"maxHeaderBytes"`
	Timeouts       struct {
		Idle       int `koanf:"idle"`
		ReadHeader int `koanf:"readHeader"`
		Read       int `koanf:"read"`
		Write      int `koanf:"write"`
	}
}

type Storage

type Storage struct {
	ConnectionString string `koanf:"connection_string"`
	Salt             string `koanf:"salt"`
}

Jump to

Keyboard shortcuts

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