micro/registry/consul_node.go

21 lines
298 B
Go
Raw Normal View History

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