Discover Packages
github.com/hfpublic/webbasic
configs
package
Version:
v0.0.0-...-f04d356
Opens a new window with list of versions in this module.
Published: Apr 21, 2021
License: Apache-2.0
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 Client struct {
*Grpc `yaml:"grpc"`
}
LoadConfigYaml 从yaml配置文件中读取配置信息
type ElasticSearch struct {
Addresses []string `yaml:"addresses"`
}
type Grpc struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
}
type HTTPServer struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
}
type Mysql struct {
Host string `yaml:"host"`
Port int `yaml:"port"`
User string `yaml:"user"`
Password string `yaml:"password"`
Schema string `yaml:"schema"`
URL string `yaml:"url"`
}
type Server struct {
TokenTime int `yaml:"tokentimes"`
DemoMode bool `yaml:"demomode"`
AuthorizeSwitch bool `yaml:"authorize"`
*HTTPServer `yaml:"httpserver"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.