mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
Change receiver to handler, breaking change, grrr
This commit is contained in:
@@ -12,19 +12,6 @@ type Watcher interface {
|
||||
Stop()
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
Name string
|
||||
Metadata map[string]string
|
||||
Nodes []*Node
|
||||
}
|
||||
|
||||
type Node struct {
|
||||
Id string
|
||||
Address string
|
||||
Port int
|
||||
Metadata map[string]string
|
||||
}
|
||||
|
||||
type options struct{}
|
||||
|
||||
type Option func(*options)
|
||||
|
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