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 {
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
}