mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
21 lines
298 B
Go
21 lines
298 B
Go
|
package registry
|
||
|
|
||
|
type ConsulNode struct {
|
||
|
Node string
|
||
|
NodeId string
|
||
|
NodeAddress string
|
||
|
NodePort int
|
||
|
}
|
||
|
|
||
|
func (c *ConsulNode) Id() string {
|
||
|
return c.NodeId
|
||
|
}
|
||
|
|
||
|
func (c *ConsulNode) Address() string {
|
||
|
return c.NodeAddress
|
||
|
}
|
||
|
|
||
|
func (c *ConsulNode) Port() int {
|
||
|
return c.NodePort
|
||
|
}
|