You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
930 B
Go
33 lines
930 B
Go
package registry
|
|
|
|
type registryService struct {
|
|
Name string `json:"name"`
|
|
Version string `json:"version,omitempty"`
|
|
Metadata map[string]string `json:"metadata,omitempty"`
|
|
Endpoints []registryEndpoint `json:"endpoints,omitempty"`
|
|
Nodes []registryNode `json:"nodes,omitempty"`
|
|
}
|
|
|
|
type registryEndpoint struct {
|
|
Name string `json:"name"`
|
|
Request registryValue `json:"request"`
|
|
Response registryValue `json:"response"`
|
|
Metadata map[string]string `json:"metadata"`
|
|
}
|
|
|
|
type registryNode struct {
|
|
Id string `json:"id"`
|
|
Address string `json:"address"`
|
|
Metadata map[string]string `json:"metadata"`
|
|
}
|
|
|
|
type registryValue struct {
|
|
Name string `json:"name"`
|
|
Type string `json:"type"`
|
|
Values []registryValue `json:"values"`
|
|
}
|
|
|
|
type getServiceListResponse struct {
|
|
Services []registryService `json:"services"`
|
|
}
|