package service
|
|
//type Service struct {
|
// Name string `json:"name"` //名称
|
// Version string `json:"version"` //版本
|
// Endpoints []Endpoint `json:"endpoints"` //ep
|
// Nodes []Node `json:"nodes"` //节点
|
//}
|
//
|
//type Node struct {
|
// Id string `json:"id"` //服务节点id
|
// MachineId string `json:"machineId"` //机器id
|
// ProcId string `json:"procId"` //进程id
|
// Address int `json:"address"` //端口,或者shmKey
|
//}
|
//
|
//type Endpoint struct {
|
// Path string `json:"path"`
|
// Name string `json:"name"`
|
// Request ReqRep `json:"request"`
|
// Response ReqRep `json:"response"`
|
//}
|
//
|
//type ReqRep struct {
|
// Name string `json:"name"`
|
// Type string `json:"type"`
|
// Values ReqRep `json:"values"`
|
//}
|