mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-24 22:26:54 +02:00
12 lines
189 B
Go
12 lines
189 B
Go
![]() |
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)
|
||
|
}
|