micro/registry/service.go

11 lines
184 B
Go
Raw Normal View History

2015-01-14 02:31:27 +03:00
package registry
type Service interface {
Name() string
Nodes() []Node
}
func NewService(name string, nodes ...Node) Service {
return DefaultRegistry.NewService(name, nodes...)
}