package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Aug 12, 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
¶
func InitConfigForTest(reader IReader)
type Config struct {
Server *Server `yaml:"server"`
MySQL *MySQL `yaml:"mysql"`
Redis *Redis `yaml:"redis"`
Etcd *Etcd `yaml:"etcd"`
Es *Es `yaml:"es"`
Services map[string]*Service `yaml:"services"`
Domain map[string]*Domain `yaml:"domain"`
SeConfig *SeConfig `yaml:"SeConfig"`
}
type ConfigReader struct {
FileName string
}
type Domain struct {
Name string `yaml:"name"`
}
type Es struct {
EsHost string `yaml:"esHost"`
EsPort string `yaml:"esPort"`
EsIndex string `yaml:"esIndex"`
}
type Etcd struct {
Address string `yaml:"address"`
}
type IReader interface {
}
type MySQL struct {
DriverName string `yaml:"driverName"`
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 SeConfig struct {
StoragePath string `yaml:"StoragePath"`
SourceFiles []string `yaml:"SourceFiles"`
MergeChannelSize int64 `yaml:"MergeChannelSize"`
Version string `yaml:"Version"`
SourceWuKoFile string `yaml:"SourceWuKoFile"`
MetaPath string `yaml:"MetaPath"`
}
type Server struct {
Port string `yaml:"port"`
Version string `yaml:"version"`
JwtSecret string `yaml:"jwtSecret"`
}
type Service struct {
Name string `yaml:"name"`
LoadBalance bool `yaml:"loadBalance"`
Addr []string `yaml:"addr"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.