gateway/core/service.go

17 lines
288 B
Go
Raw Normal View History

2021-09-07 13:40:44 +08:00
package core
type serviceMap struct {
Path string
Service string
2021-09-07 17:12:29 +08:00
Enable bool
2021-09-07 13:40:44 +08:00
}
2021-09-07 17:12:29 +08:00
func NewServiceMapItem(k, v string, e bool) serviceMap {
2021-09-07 13:40:44 +08:00
//var sma []serviceMap
// 从Nacos读取规则
// gateway:
// - path: /user
// service: mb-user-service
2021-09-07 17:12:29 +08:00
return serviceMap{k, v, e}
2021-09-07 13:40:44 +08:00
}