18 lines
315 B
Go
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}
|
|
}
|