mirror of
https://github.com/go-micro/go-micro.git
synced 2025-11-29 21:47:44 +02:00
First
This commit is contained in:
19
registry/kubernetes_node.go
Normal file
19
registry/kubernetes_node.go
Normal file
@@ -0,0 +1,19 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user