Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIConfig ¶
type APIConfig struct {
APIEndpoint string `env:"API_ENDPOINT" json:"endpoint"`
}
APIConfig from marudor api
type Config ¶
type Config struct { APIConfig APIConfig `json:"api"` Database DatabaseConfig `json:"database"` Telegram TelegramConfig `json:"telegram"` LogLevel string `env:"LOG_LEVEL" json:"loglevel"` }
Config contains the complete service configuration
func NewTestConfig ¶
func NewTestConfig() *Config
NewTestConfig return a config object with test settings
type DatabaseConfig ¶
type DatabaseConfig struct { Dialect string `env:"DB_DIALECT" json:"dialect"` Path string `env:"DB_PATH" json:"path"` }
DatabaseConfig connection data
type TelegramConfig ¶
type TelegramConfig struct {
Key string `env:"TELEGRAM_KEY" json:"key"`
}
TelegramConfig for the bot
Click to show internal directories.
Click to hide internal directories.