configs

package
v0.0.0-...-4d7482c Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 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 Conf

type Conf struct {
	DBPort               int    `mapstructure:"REDIS_PORT"`
	DBHost               string `mapstructure:"REDIS_HOST"`
	DBPassword           string `mapstructure:"REDIS_PASSWORD"`
	DBDataTTL            int    `mapstructure:"REDIS_DATATTL"`
	RateLimiterRequests  int64  `mapstructure:"RATELIMITER_MAX_REQUESTS"`
	RateLimiterBlockTime int64  `mapstructure:"RATELIMITER_BLOCK_TIME"`
	RateLimiterTokens    string `mapstructure:"RATELIMITER_CUSTOM_TOKENS"`
	ServerPort           int    `mapstructure:"SERVER_PORT"`
}

func LoadConfig

func LoadConfig(path string) (*Conf, error)

Jump to

Keyboard shortcuts

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