1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-29 21:47:44 +02:00
Files
go-micro/registry/consul_node.go

21 lines
298 B
Go
Raw Normal View History

2015-01-13 23:31:27 +00:00
package registry
type consulNode struct {
2015-01-13 23:31:27 +00:00
Node string
NodeId string
NodeAddress string
NodePort int
}
func (c *consulNode) Id() string {
2015-01-13 23:31:27 +00:00
return c.NodeId
}
func (c *consulNode) Address() string {
2015-01-13 23:31:27 +00:00
return c.NodeAddress
}
func (c *consulNode) Port() int {
2015-01-13 23:31:27 +00:00
return c.NodePort
}