Documentation
¶
Overview ¶
Package errors provides common Error functionality to the Trickster proxy
Index ¶
- Variables
- func CouldNotFindKey(name string) error
- func InvalidPath(path string) error
- func MissingRequestParam(param string) error
- func MissingURLParam(param string) error
- func ParseDuration(input string) (time.Duration, error)
- func ParseRequestBody(err error) error
- func TimeArrayEmpty(param string) error
Constants ¶
This section is empty.
Variables ¶
var ErrDrainTimeout = errors.New("timed out draining")
ErrDrainTimeout indicates an error that the connection drain took longer than the requested timeout
var ErrEmptyDocumentBody = errors.New("empty document body")
ErrEmptyDocumentBody indicates a cached object did not contain an HTTP Document upon retrieval
var ErrInvalidRuleOptions = errors.New("invalid rule options")
ErrInvalidRuleOptions indicates an error that the provided rule options were invalid
var ErrNilCacheDocument = errors.New("nil cache document")
ErrNilCacheDocument indicates a cache object reference is nil
var ErrNilListener = errors.New("nil listener")
ErrNilListener indicates an error that the underlying net.Listener is nil
var ErrNoRanges = errors.New("no usable ranges")
ErrNoRanges indicates an error that the range request does not contain any usable ranges
var ErrNoSuchListener = errors.New("no such listener")
ErrNoSuchListener indicates an error that the provided listener name is unknown
var ErrNotSelectStatement = errors.New("not a select statement")
ErrNotSelectStatement indicates an error that the time series request is not a read-only select query
var ErrNotTimeRangeQuery = errors.New("not a time range query")
ErrNotTimeRangeQuery indicates an error that the time series request does not contain a query
var ErrPCFContentLength = errors.New("content length does not permit PCF")
ErrPCFContentLength indicates that a response's content length does not permit PCF
var ErrReadIndexTooLarge = errors.New("read index too large")
ErrReadIndexTooLarge is an error indicating the read index is too large
var ErrServerRequestNotCompleted = errors.New("server request not completed")
ErrServerRequestNotCompleted indicates the remote origin could not service the request
var ErrStepParse = errors.New("unable to parse timeseries step from downstream request")
ErrStepParse indicates an error parsing the step interval of a time series request
var ErrUnexpectedUpstreamResponse = errors.New("unexpected upstream response")
ErrUnexpectedUpstreamResponse indicates the http.Response received from an upstream origin indicates the request did not succeed due to a request error or origin-side error
Functions ¶
func CouldNotFindKey ¶
CouldNotFindKey returns an error indicating the key could not be found in the document
func InvalidPath ¶
InvalidPath returns an error indicating the request path is not valid.
func MissingRequestParam ¶
MissingRequestParam returns an error indicating the request is missing a required parameter.
func MissingURLParam ¶
MissingURLParam returns a Formatted Error
func ParseDuration ¶
ParseDuration returns a Duration Parsing Error
func ParseRequestBody ¶
ParseRequestBody returns an error indicating the request body could not parsed into a valid value.
func TimeArrayEmpty ¶
TimeArrayEmpty returns a Formatted Error
Types ¶
This section is empty.