Versions in this module Expand all Collapse all v0 v0.0.2 Aug 17, 2022 Changes in this version + type ActiveHealthCheck struct + Concurrency int32 + Healthy *ActiveHealthCheckHealthy + Host string + HttpPath string + HttpsVerifyCertificate bool + Port int32 + ReqHeaders []string + Timeout float64 + Type string + Unhealthy *ActiveHealthCheckUnhealthy + type ActiveHealthCheckHealthy struct + HttpStatuses []int32 + Interval int32 + Successes int32 + type ActiveHealthCheckUnhealthy struct + HttpFailures int32 + HttpStatuses []int32 + Interval int32 + TcpFailures int32 + Timeouts int32 + type HashOn string + const HashOnConsumer + const HashOnCookie + const HashOnHeader + const HashOnVars + const HashOnVarsCombination + type HealthCheck struct + Active *ActiveHealthCheck + Passive *PassiveHealthCheck + type HealthCheckType string + const HealthCheckTypeHttp + const HealthCheckTypeHttps + const HealthCheckTypeTcp + type HostPassingStrategy string + const HostPassingStrategyNode + const HostPassingStrategyPass + const HostPassingStrategyRewrite + type KeepalivePool struct + IdleTimeout float64 + Requests int32 + Size int32 + type LoadBalanceType string + const LoadBalanceTypeChash + const LoadBalanceTypeEwma + const LoadBalanceTypeLeaseConn + const LoadBalanceTypeRoundrobin + type Node struct + Host string + Metadata map[string]interface{} + Port int32 + Weight int32 + type PassiveHealthCheck struct + Healthy *PassiveHealthCheckHealthy + Type string + Unhealthy *PassiveHealthCheckUnhealthy + type PassiveHealthCheckHealthy struct + HttpStatuses []int32 + Successes int32 + type PassiveHealthCheckUnhealthy struct + HttpFailures int32 + HttpStatuses []int32 + TcpFailures int32 + Timeouts int32 + type ProtocolScheme string + const ProtocolSchemeGrpc + const ProtocolSchemeGrpcs + const ProtocolSchemeHttp + const ProtocolSchemeHttps + const ProtocolSchemeTcp + const ProtocolSchemeTls + const ProtocolSchemeUdp + type Route struct + CreateTime int64 + Desc string + EnableWebsocket bool + Hosts []string + Id string + Labels map[string]string + Methods []string + Name string + Plugins map[string]interface{} + Priority int32 + RemoteAddrs []string + ServiceId string + Status RouteStatus + Timeout *Timeout + UpdateTime int64 + UpstreamId string + Uris []string + Vars []*Var + func CompareRoutes(r1, r2 []*Route) (added, deleted, updated []*Route) + type RouteStatus int32 + const RouteDisable + const RouteEnable + type Storage interface + Delete func(string) + Store func(string, string) + type Timeout struct + Connect float64 + Read float64 + Send float64 + type Upstream struct + Check *HealthCheck + CreateTime int64 + Desc string + HashOn HashOn + Id string + KeepalivePool *KeepalivePool + Key string + Labels map[string]string + Name string + Nodes []*Node + PassHost HostPassingStrategy + Retries int32 + Scheme ProtocolScheme + Timeout *Timeout + Tls *UpstreamTLSConfig + Type LoadBalanceType + UpdateTime int64 + UpstreamHost string + func CompareUpstreams(u1, u2 []*Upstream) (added, deleted, updated []*Upstream) + type UpstreamTLSConfig struct + ClientCert string + ClientKey string + type Var = []interface