config

package
v0.0.0-...-912aeb5 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	ApiUrl string
}

type Config

type Config struct {
	TelegramConfig
	DBConfig
	APIConfig
}

func NewConfig

func NewConfig() (*Config, error)

type DBConfig

type DBConfig struct {
	Host     string
	User     string
	Password string
	DBName   string
	Port     string
}

type TelegramConfig

type TelegramConfig struct {
	TelegramToken string
}

Jump to

Keyboard shortcuts

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