mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-06 22:06:19 +02:00
11 lines
184 B
Go
11 lines
184 B
Go
|
package registry
|
||
|
|
||
|
type Service interface {
|
||
|
Name() string
|
||
|
Nodes() []Node
|
||
|
}
|
||
|
|
||
|
func NewService(name string, nodes ...Node) Service {
|
||
|
return DefaultRegistry.NewService(name, nodes...)
|
||
|
}
|