Documentation ¶
Index ¶
Constants ¶
View Source
const ( // StatusCodeMain is the expected HTTP status code from sidecar service which will // route traffic to Main proxy StatusCodeMain = 204 // StatusCodeCanary is the expected HTTP status code from sidecar service which will // route traffic to Canary proxy StatusCodeCanary = 200 )
View Source
const ( // StatusSidecarError means there is an error when proceeding request forwarded to sidecar StatusSidecarError = http.StatusServiceUnavailable )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server holds necessary components as a proxy server
func (*Server) IsCanaryErrorLimited ¶
IsCanaryErrorLimited checks if circuit breaker (canary error limiter) feature is enabled
func (*Server) IsCanaryRequestLimited ¶
IsCanaryRequestLimited checks if circuit breaker (canary request limiter) feature is enabled
Click to show internal directories.
Click to hide internal directories.