gateway/core/service.go
李寻欢 feb62f12b7
All checks were successful
continuous-integration/drone/push Build is passing
网关新增走集群内部网络转发
2021-09-09 11:46:04 +08:00

18 lines
315 B
Go

package core
type serviceItem struct {
Path string
Service string
Enable bool
Lb Lb
}
func NewServiceMapItem(k, v string, e bool, lb Lb) serviceItem {
//var sma []serviceItem
// 从Nacos读取规则
// gateway:
// - path: /user
// service: mb-user-service
return serviceItem{k, v, e, lb}
}