discover/Config.go

13 lines
415 B
Go
Raw Normal View History

package discover
import "apigo.cc/go/log"
// Config 存储发现服务的可选配置
type Config struct {
Weight int // 权重,默认为 100
Calls map[string]string // 调用的应用列表及其配置
CallRetryTimes int // 调用重试次数
IpPrefix string // 指定使用的 IP 网段
Logger *log.Logger // 自定义 Logger
}