zhangzengfei
2023-09-04 e8e536d1cb52d2126c8c7ce2ba1c7a76f7208678
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"`
//}