config

package
v0.0.0-...-5365b76 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Unlicense 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 {
	GRPC struct {
		Host string
		Port int
	}
	Buckets struct {
		Timespan     int // in seconds
		LoginRate    int // times for 1 timespan
		PasswordRate int // times for 1 timespan
		IPRate       int // times for 1 timespan
		Lifetime     int // bucket lifetime in seconds
		Clean        int // storage clean interval in seconds
	}
}

func NewAppConfig

func NewAppConfig(configFile string) (*AppConfig, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳