1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-06-18 22:17:44 +02:00

Change receiver to handler, breaking change, grrr

This commit is contained in:
Asim
2015-06-03 01:25:37 +01:00
parent 8cdc2b5f82
commit cdf2f2cbcd
13 changed files with 325 additions and 144 deletions

28
registry/service.go Normal file
View File

@ -0,0 +1,28 @@
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
}
type Value struct {
Name string
Type string
Values []*Value
}