mirror of
https://github.com/alibaba/higress.git
synced 2026-05-08 04:17:27 +08:00
feat: implement apiToken failover mechanism (#1256)
This commit is contained in:
@@ -45,6 +45,19 @@ func (c RouteCluster) HostName() string {
|
||||
return GetRequestHost()
|
||||
}
|
||||
|
||||
type TargetCluster struct {
|
||||
Host string
|
||||
Cluster string
|
||||
}
|
||||
|
||||
func (c TargetCluster) ClusterName() string {
|
||||
return c.Cluster
|
||||
}
|
||||
|
||||
func (c TargetCluster) HostName() string {
|
||||
return c.Host
|
||||
}
|
||||
|
||||
type K8sCluster struct {
|
||||
ServiceName string
|
||||
Namespace string
|
||||
|
||||
Reference in New Issue
Block a user