1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-12-24 10:07:04 +02:00
go-micro/registry/service.go

30 lines
422 B
Go
Raw Normal View History

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
Metadata map[string]string
}
type Value struct {
Name string
Type string
Values []*Value
}