Versions in this module Expand all Collapse all v1 v1.0.0 Jul 16, 2018 Changes in this version + const HitForPassTTL + var DefaultRecoverConfig = RecoverConfig + var ErrContentEncodingNotSupport = pike.NewHTTPError(http.StatusNotImplemented, "content enconding not support") + var ErrDirectorNotFound = pike.NewHTTPError(http.StatusNotImplemented, "director not found") + var ErrGatewayTimeout = pike.NewHTTPError(http.StatusGatewayTimeout, "gateway timeout") + var ErrIdentityNotSet = pike.NewHTTPError(http.StatusNotImplemented, "identity not set") + var ErrNoBackendAvaliable = pike.NewHTTPError(http.StatusServiceUnavailable, "no backend avaliable") + var ErrRequestStatusNotSet = pike.NewHTTPError(http.StatusNotImplemented, "request status not set") + var ErrResponseNotSet = pike.NewHTTPError(http.StatusNotImplemented, "response not set") + var ErrTooManyRequest = pike.NewHTTPError(http.StatusTooManyRequests, "too many request is handling") + func CacheFetcher(config CacheFetcherConfig, client *cache.Client) pike.Middleware + func CreateErrorHandler(client *cache.Client) pike.ErrorHandler + func DirectorPicker(config DirectorPickerConfig, directors pike.Directors) pike.Middleware + func Dispatcher(config DispatcherConfig, client *cache.Client) pike.Middleware + func FreshChecker(config FreshCheckerConfig) pike.Middleware + func HeaderSetter(config HeaderSetterConfig) pike.Middleware + func Identifier(config IdentifierConfig, client *cache.Client) pike.Middleware + func Initialization(config InitializationConfig) pike.Middleware + func Logger(config LoggerConfig) pike.Middleware + func Ping(config PingConfig) pike.Middleware + func Proxy(config ProxyConfig) pike.Middleware + func Recover(config RecoverConfig) pike.Middleware + type CacheFetcherConfig struct + type DirectorPickerConfig struct + type DispatcherConfig struct + CompressLevel int + CompressMinLength int + CompressTypes []string + type FreshCheckerConfig struct + type HeaderSetterConfig struct + type IdentifierConfig struct + type InitializationConfig struct + Concurrency int + Header []string + RequestHeader []string + type LoggerConfig struct + LogFormat string + Writer httplog.Writer + type PingConfig struct + URL string + type ProxyConfig struct + ETag bool + Rewrites []string + Timeout time.Duration + type ProxyTarget struct + Name string + URL *url.URL + type RecoverConfig struct + DisablePrintStack bool + DisableStackAll bool + StackSize int