Discover Packages
gitee.com/os-lee/easy-paas
admin
config
package
Version:
v0.0.0-...-6cf1638
Opens a new window with list of versions in this module.
Published: Oct 24, 2024
License: MulanPSL-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Config struct {
Server *Server `yaml:"server"`
MySQL *MySQL `yaml:"mysql"`
Redis *Redis `yaml:"redis"`
Etcd *Etcd `yaml:"etcd"`
Gateway *Gateway `yaml:"gateway"`
Logs *Logs `yaml:"logs"`
}
type Etcd struct {
Endpoints []string `yaml:"endpoints"`
Ttl int64 `yaml:"ttl"`
}
type Gateway struct {
Name string `yaml:"name"`
}
type Logs struct {
Level string `yaml:"level"`
Dir string `yaml:"dir"`
}
type MySQL struct {
DriverName string `yaml:"driver"`
Host string `yaml:"host"`
Port string `yaml:"port"`
Database string `yaml:"database"`
UserName string `yaml:"username"`
Password string `yaml:"password"`
Charset string `yaml:"charset"`
}
type Redis struct {
UserName string `yaml:"username"`
Address string `yaml:"address"`
Password string `yaml:"password"`
}
type Server struct {
Name string `yaml:"name"`
Host string `yaml:"host"`
Port string `yaml:"port"`
Version string `yaml:"version"`
MultipleContainer bool `yaml:"multipleContainer"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.