mirror of
https://github.com/alibaba/higress.git
synced 2026-06-09 04:37:31 +08:00
add ai cache plugin (#1010)
This commit is contained in:
@@ -151,3 +151,20 @@ func (c ConsulCluster) HostName() string {
|
||||
}
|
||||
return c.ServiceName
|
||||
}
|
||||
|
||||
type FQDNCluster struct {
|
||||
FQDN string
|
||||
Host string
|
||||
Port int64
|
||||
}
|
||||
|
||||
func (c FQDNCluster) ClusterName() string {
|
||||
return fmt.Sprintf("outbound|%d||%s", c.Port, c.FQDN)
|
||||
}
|
||||
|
||||
func (c FQDNCluster) HostName() string {
|
||||
if c.Host != "" {
|
||||
return c.Host
|
||||
}
|
||||
return c.FQDN
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user