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 (
- log "gitlink.org.cn/cloudream/common/pkgs/logger"
- c "gitlink.org.cn/cloudream/common/utils/config"
- db "gitlink.org.cn/cloudream/storage-common/pkgs/db/config"
- stgmq "gitlink.org.cn/cloudream/storage-common/pkgs/mq"
- )
-
- type Config struct {
- Logger log.Config `json:"logger"`
- DB db.Config `json:"db"`
- RabbitMQ stgmq.Config `json:"rabbitMQ"`
- }
-
- var cfg Config
-
- func Init() error {
- return c.DefaultLoad("coordinator", &cfg)
- }
-
- func Cfg() *Config {
- return &cfg
- }
|