micro/registry/service.go
2015-01-13 23:31:27 +00:00

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...)
}