Documentation ¶
Index ¶
- Constants
- func ArrayToString(array []string) string
- func ReadYamlConfig(configFile string)
- func Setup()
- func StrInArray(str string, array []string) error
- func VerifyConfig() error
- func WriteYamlConfig(configFile string)
- type Config
- type DbConfig
- type Headers
- type HttpConfig
- type LogConfig
- type Mysql
- type PluginsConfig
- type Reverse
- type ServerConfig
Constants ¶
View Source
const Banner = `` /* 210-byte string literal not displayed */
View Source
const ConfigFileName = "config.yaml"
View Source
const DefaultPort = "1231"
View Source
const ServiceName = "pocassist"
View Source
const Version = "1.0.4"
View Source
const Website = "https://pocassist.jweny.top/"
Variables ¶
This section is empty.
Functions ¶
func ArrayToString ¶
func ReadYamlConfig ¶
func ReadYamlConfig(configFile string)
func StrInArray ¶
func VerifyConfig ¶
func VerifyConfig() error
func WriteYamlConfig ¶
func WriteYamlConfig(configFile string)
Types ¶
type Config ¶
type Config struct { HttpConfig HttpConfig `mapstructure:"httpConfig"` DbConfig DbConfig `mapstructure:"dbConfig"` PluginsConfig PluginsConfig `mapstructure:"pluginsConfig"` Reverse Reverse `mapstructure:"reverse"` ServerConfig ServerConfig `mapstructure:"serverConfig"` LogConfig LogConfig `mapstructure:"logConfig"` }
var GlobalConfig *Config
func (*Config) DebugOutput ¶
func (*Config) ErrorOutput ¶
func (*Config) InfoOutput ¶
func (*Config) MaxLogSize ¶
func (*Config) ServiceName ¶
type HttpConfig ¶
type HttpConfig struct { Headers Headers `mapstructure:"headers"` Proxy string `mapstructure:"proxy"` HttpTimeout int `mapstructure:"http_timeout"` DailTimeout int `mapstructure:"dail_timeout"` UdpTimeout int `mapstructure:"udp_timeout"` MaxQps int `mapstructure:"max_qps"` MaxRedirect int `mapstructure:"max_redirect"` }
type PluginsConfig ¶
type ServerConfig ¶
Click to show internal directories.
Click to hide internal directories.