configs

package
v0.0.0-...-bc13906 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Stage            string `env:"UP_STAGE"`
	Host             string `env:"HOST"`
	Port             int    `env:"PORT"`
	ReadTimeout      int    `env:"READ_TIMEOUT"`
	WriteTimeout     int    `env:"WRITE_TIMEOUT"`
	Debug            bool   `env:"DEBUG"`
	DbLog            bool   `env:"DB_LOG"`
	DbPsn            string `env:"DB_PSN"`
	DbType           string `env:"DB_TYPE"`
	TelegramBotToken string `env:"TELEGRAM_BOT_TOKEN"`
	TelegramChatID   int64  `env:"TELEGRAM_CHAT_ID"`
}

func Load

func Load() (*Configuration, error)

Load returns Configuration struct

Jump to

Keyboard shortcuts

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