2015-06-03 03:25:37 +03: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 21:52:27 +03:00
|
|
|
Metadata map[string]string
|
2015-06-03 03:25:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
type Value struct {
|
|
|
|
Name string
|
|
|
|
Type string
|
|
|
|
Values []*Value
|
|
|
|
}
|