mirror of
https://github.com/go-micro/go-micro.git
synced 2025-04-17 11:06:19 +02:00
20 lines
294 B
Go
20 lines
294 B
Go
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
|
|
}
|