You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package config
-
- import (
- racfg "gitlink.org.cn/cloudream/rabbitmq/config"
- c "gitlink.org.cn/cloudream/utils/config"
- log "gitlink.org.cn/cloudream/utils/logger"
- )
-
- type Config struct {
- ID int `json:"id"`
- GRPCListenAddress string `json:"grpcListenAddress"`
- LocalIP string `json:"localIP"`
- IPFSPort int `json:"ipfsPort"`
- StorageBaseDir string `json:"storageBaseDir"`
- Logger log.Config `json:"logger"`
- RabbitMQ racfg.Config `json:"rabbitMQ"`
- }
-
- var cfg Config
-
- func Init() error {
- return c.DefaultLoad("agent", &cfg)
- }
-
- func Cfg() *Config {
- return &cfg
- }
|