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
}