Discover Packages
github.com/erdong01/kit
conf
package
Version:
v1.10.13
Opens a new window with list of versions in this module.
Published: Jan 22, 2025
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Db struct {
Ip string `yaml:"ip"`
Name string `yaml:"name"`
User string `yaml:"user"`
Password string `yaml:"password"`
MaxIdleConns int `yaml:"maxIdleConns"`
MaxOpenConns int `yaml:"maxOpenConns"`
}
type Etcd struct {
Endpoints []string `yaml:"endpoints"`
}
type Http struct {
Listen string `yaml:"listen"`
}
type Nats struct {
Endpoints string `yaml:"endpoints"`
}
type Raft struct {
Endpoints []string `yaml:"endpoints"`
}
type Redis struct {
OpenFlag bool `yaml:"open"`
Ip string `yaml:"ip"`
Password string `yaml:"password"`
}
type Server struct {
Ip string `yaml:"ip"`
Port int `yaml:"port"`
}
type SnowFlake struct {
Endpoints []string `yaml:"endpoints"`
}
type Stub struct {
StubCount map[string ]int64 `yaml:"stub_count"`
MaxCount int64 `yaml:"max_count"`
}
type StubRoute struct {
STUB rpc .STUB `yaml:"stub"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.