configs

package
v0.0.0-...-f6ab580 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TGBotCfg

type TGBotCfg struct {
	Name           string `mapstructure:"name"`
	Port           string `mapstructure:"port"`
	BotToken       string `mapstructure:"bot_token" validate:"required"`
	CACert         string `mapstructure:"ca_cert" validate:"required"`
	ServerCert     string `mapstructure:"server_cert" validate:"required"`
	ServerPkey     string `mapstructure:"server_pkey" validate:"required"`
	DatabaseUri    string `mapstructure:"database_uri" validate:"required"`
	configs.Logger `mapstructure:"logger"`
}

TGBotCfg настройки бота

func NewTGBotConfig

func NewTGBotConfig(filename string, configPath []string, logger zerolog.Logger, validator validators.Validator) (*TGBotCfg, error)

Jump to

Keyboard shortcuts

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