config

package
v0.0.0-...-fef60ef Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Addr      string   `envconfig:"default=0.0.0.0:8080"`
	RateLogin int      `envconfig:"default=10"`
	RatePwd   int      `envconfig:"default=100"`
	RateIP    int      `envconfig:"default=10000"`
	Whitelist []string `envconfig:"optional"`
	Blacklist []string `envconfig:"optional"`
	LogLevel  string   `envconfig:"default=DEBUG"`
}

func GetConfig

func GetConfig() (AppConfig, error)

Jump to

Keyboard shortcuts

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