config

package
v0.0.0-...-fb92606 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 2 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 {
	NumberOfAttemptsForLogin    int64
	NumberOfAttemptsForPassword int64
	NumberOfAttemptsForIP       int64
}

type Config

func NewConfig

func NewConfig(configFolder string) *Config

type DatabaseConfig

type DatabaseConfig struct {
	DSN string
}

type LeakyBucketConfig

type LeakyBucketConfig struct {
	ResetIntervalInSeconds int
}

type LoggerConfig

type LoggerConfig struct {
	Level string
	File  string
}

type ServerConfig

type ServerConfig struct {
	Address string
}

Jump to

Keyboard shortcuts

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