Discover Packages
github.com/captainGeech42/hotline
internal
config
package
Version:
v0.0.0-...-2b140d7
Opens a new window with list of versions in this module.
Published: Jul 13, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Callback struct {
Domain string `yaml:"domain"`
Http Http `yaml:"http"`
Dns Dns `yaml:"dns"`
}
type Client struct {
ServerUrl string `yaml:"server_url"`
}
type Config struct {
Server Server `yaml:"server"`
Client Client `yaml:"client"`
}
type Database struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
Username string `yaml:"username"`
Password string `yaml:"password"`
DbName string `yaml:"dbname"`
}
type Dns struct {
Port int `yaml:"port"`
DefaultAResponse string `yaml:"default_A_response"`
DefaultTXTResponse string `yaml:"default_TXT_response"`
AcmeChallengePath string `yaml:"acme_challenge_path"`
}
type Http struct {
Port int `yaml:"port"`
DefaultReponse string `yaml:"default_response"`
}
type Server struct {
Callback Callback `yaml:"callback"`
Web Web `yaml:"web"`
Database Database `yaml:"db"`
}
type Web struct {
Port int `yaml:"port"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.