2015-06-03 01:25:37 +01:00
|
|
|
package registry
|
|
|
|
|
|
|
|
type Service struct {
|
|
|
|
Name string
|
|
|
|
Version string
|
|
|
|
Metadata map[string]string
|
|
|
|
Endpoints []*Endpoint
|
|
|
|
Nodes []*Node
|
|
|
|
}
|
|
|
|
|
|
|
|
type Node struct {
|
|
|
|
Id string
|
|
|
|
Address string
|
|
|
|
Port int
|
|
|
|
Metadata map[string]string
|
|
|
|
}
|
|
|
|
|
|
|
|
type Endpoint struct {
|
|
|
|
Name string
|
|
|
|
Request *Value
|
|
|
|
Response *Value
|
2015-06-12 19:52:27 +01:00
|
|
|
Metadata map[string]string
|
2015-06-03 01:25:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
type Value struct {
|
|
|
|
Name string
|
|
|
|
Type string
|
|
|
|
Values []*Value
|
|
|
|
}
|