Discover Packages
github.com/KuYaki/waffler_server
config
package
Version:
v0.0.0-...-6e75e83
Opens a new window with list of versions in this module.
Published: Oct 1, 2023
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AppConf struct {
AppName string `yaml:"app_name"`
TestApp bool `yaml:"test_app"`
Server *Server `yaml:"server"`
Logger *Logger `yaml:"logger"`
DB *DB `yaml:"database_url"`
Token *Token `yaml:"token"`
Telegram *Telegram `yaml:"telegram"`
ChatGPT *ChatGPT `yaml:"chatgpt"`
}
type ChatGPT struct {
Token string `yaml:"token"`
}
type DB struct {
Name string `yaml:"name"`
User string `json:"-" yaml:"user"`
Password string `json:"-" yaml:"password"`
Host string `yaml:"host"`
Port string `yaml:"port"`
}
type Logger struct {
Level string `yaml:"level"`
LogPath string `yaml:"log_file"`
}
type Server struct {
Port string `yaml:"port"`
ShutdownTimeout time .Duration `yaml:"shutdown_timeout"`
}
type Telegram struct {
AppID int `yaml:"app_id"`
ApiHash string `yaml:"token"`
Phone string `yaml:"phone"`
}
type Token struct {
AccessTTL time .Duration `yaml:"access_ttl"`
RefreshTTL time .Duration `yaml:"refresh_ttl"`
AccessSecret string `yaml:"access_secret"`
RefreshSecret string `yaml:"refresh_secret"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.