Versions in this module Expand all Collapse all v0 v0.0.1 Mar 5, 2021 Changes in this version + const RawQueryContextKey + const RawQueryHTTPHeader + var ErrIllegalQueryResult = errors.New("query resulted in primitive type") + var ErrIllegalResponseType = errors.New("upstream response is not application/json") + var ErrInvalidResponseBody = errors.New("upstream response is invalid JSON") + var HeaderParser = func(f http.HandlerFunc, logger *log.Logger) http.HandlerFunc + var RequestID = func(f http.HandlerFunc) http.HandlerFunc + func Director(super func(*http.Request), logger *log.Logger) func(*http.Request) + func ErrorHandler(logger *log.Logger) func(http.ResponseWriter, *http.Request, error) + func Rewriter(logger *log.Logger) rewriter + type Config struct + CacheSize int + DialKeepAlive time.Duration + DialTimeout time.Duration + EvaluationTimeout time.Duration + ExpectContinueTimeout time.Duration + Level log.Level + Port int + ReadTimeout time.Duration + ResponseHeaderTimeout time.Duration + TLSHandshakeTimeout time.Duration + WriteTimeout time.Duration + func NewConfig() *Config + func (c *Config) Evaluator() (jq.Evaluator, error) + func (c *Config) Logger() *log.Logger + func (c *Config) Transport() *http.Transport + type Proxy struct + func NewProxy(url *url.URL, transport http.RoundTripper, evaluator jq.Evaluator, ...) *Proxy + func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Transformer struct + func NewTransformer(evaluator jq.Evaluator, rewriter rewriter) *Transformer + func (t *Transformer) ModifyResponse(r *http.Response) error