micro/registry/kubernetes_node.go

20 lines
294 B
Go
Raw Normal View History

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