micro/registry/node.go

12 lines
189 B
Go
Raw Normal View History

2015-01-14 02:31:27 +03:00
package registry
type Node interface {
Id() string
Address() string
Port() int
}
func NewNode(id, address string, port int) Node {
return DefaultRegistry.NewNode(id, address, port)
}