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:
28
registry/service.go
Normal file
28
registry/service.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user