add json tags to registry service
This commit is contained in:
parent
8cfad5db33
commit
ed75f84584
@ -1,29 +1,29 @@
|
||||
package registry
|
||||
|
||||
type Service struct {
|
||||
Name string
|
||||
Version string
|
||||
Metadata map[string]string
|
||||
Endpoints []*Endpoint
|
||||
Nodes []*Node
|
||||
Name string `json:"name"`
|
||||
Version string `json:"version"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
Endpoints []*Endpoint `json:"endpoints"`
|
||||
Nodes []*Node `json:"nodes"`
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
Id string
|
||||
Address string
|
||||
Port int
|
||||
Metadata map[string]string
|
||||
Id string `json:"id"`
|
||||
Address string `json:"address"`
|
||||
Port int `json:"port"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
||||
type Endpoint struct {
|
||||
Name string
|
||||
Request *Value
|
||||
Response *Value
|
||||
Metadata map[string]string
|
||||
Name string `json:"name"`
|
||||
Request *Value `json:"request"`
|
||||
Response *Value `json:"response"`
|
||||
Metadata map[string]string `json:"metadata"`
|
||||
}
|
||||
|
||||
type Value struct {
|
||||
Name string
|
||||
Type string
|
||||
Values []*Value
|
||||
Name string `json:"name"`
|
||||
Type string `json:"type"`
|
||||
Values []*Value `json:"values"`
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user