mirror of
https://github.com/alibaba/higress.git
synced 2026-02-28 22:50:57 +08:00
18 lines
301 B
Go
18 lines
301 B
Go
package provider
|
|
|
|
import "fmt"
|
|
|
|
type plainCluster struct {
|
|
serviceName string
|
|
servicePort int64
|
|
hostName string
|
|
}
|
|
|
|
func (c plainCluster) ClusterName() string {
|
|
return fmt.Sprintf("outbound|%d||%s", c.servicePort, c.serviceName)
|
|
}
|
|
|
|
func (c plainCluster) HostName() string {
|
|
return c.hostName
|
|
}
|