2015-01-14 02:31:27 +03:00
|
|
|
package registry
|
|
|
|
|
2015-05-23 22:04:16 +03:00
|
|
|
type consulNode struct {
|
2015-01-14 02:31:27 +03:00
|
|
|
Node string
|
|
|
|
NodeId string
|
|
|
|
NodeAddress string
|
|
|
|
NodePort int
|
|
|
|
}
|
|
|
|
|
2015-05-23 22:04:16 +03:00
|
|
|
func (c *consulNode) Id() string {
|
2015-01-14 02:31:27 +03:00
|
|
|
return c.NodeId
|
|
|
|
}
|
|
|
|
|
2015-05-23 22:04:16 +03:00
|
|
|
func (c *consulNode) Address() string {
|
2015-01-14 02:31:27 +03:00
|
|
|
return c.NodeAddress
|
|
|
|
}
|
|
|
|
|
2015-05-23 22:04:16 +03:00
|
|
|
func (c *consulNode) Port() int {
|
2015-01-14 02:31:27 +03:00
|
|
|
return c.NodePort
|
|
|
|
}
|