mirror of
https://github.com/go-micro/go-micro.git
synced 2024-12-24 10:07:04 +02:00
21 lines
328 B
Go
21 lines
328 B
Go
package registry
|
|
|
|
type KubernetesService struct {
|
|
ServiceName string
|
|
ServiceNodes []*KubernetesNode
|
|
}
|
|
|
|
func (c *KubernetesService) Name() string {
|
|
return c.ServiceName
|
|
}
|
|
|
|
func (c *KubernetesService) Nodes() []Node {
|
|
var nodes []Node
|
|
|
|
for _, node := range c.ServiceNodes {
|
|
nodes = append(nodes, node)
|
|
}
|
|
|
|
return nodes
|
|
}
|