Discover Packages
gitee.com/os-lee/easy-paas
agent
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"`
Etcd *Etcd `yaml:"etcd"`
Kafka *Kafka `yaml:"kafka"`
Es *Es `yaml:"es"`
MySQL *MySQL `yaml:"mysql"`
Node *Node `yaml:"node"`
}
type Es struct {
Address []string `yaml:"address"`
MaxChanSize int `yaml:"maxChanSize"`
GoNum int `yaml:"goNum"`
Index Index `yaml:"index"`
Username string `yaml:"username"`
Password string `yaml:"password"`
}
type Etcd struct {
Endpoints []string `yaml:"endpoints"`
Ttl int64 `yaml:"ttl"`
}
type Index struct {
Name string `yaml:"name"`
CutByApp bool `yaml:"cutByApp"`
CutByMonth bool `yaml:"cutByMonth"`
}
type Kafka struct {
Brokers []string `yaml:"brokers"`
Topic string `yaml:"topic"`
RetryNum int `yaml:"retryNum"`
}
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 Node struct {
ServerAddr string `yaml:"serverAddr"`
ServerName string `yaml:"serverName"`
ClientName string `yaml:"clientName"`
}
type Server struct {
Producer string `yaml:"producer"`
Consumer string `yaml:"consumer"`
Host string `yaml:"host"`
Version string `yaml:"version"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.