errors

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package errors provides common Error functionality to the Trickster proxy

Index

Constants

This section is empty.

Variables

View Source
var ErrNoRanges = errors.New("no usable ranges")

ErrNoRanges indicates an error that the range request does not contain any usable ranges

View Source
var ErrNotSelectStatement = errors.New("not a select statement")

ErrNotSelectStatement indicates an error that the time series request is not a read-only select query

View Source
var ErrNotTimeRangeQuery = errors.New("not a time range query")

ErrNotTimeRangeQuery indicates an error that the time series request does not contain a query

View Source
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

Functions

func InvalidPath

func InvalidPath(path string) error

InvalidPath returns an error indicating the request path is not valid.

func MissingRequestParam

func MissingRequestParam(param string) error

MissingRequestParam returns an error indicating the request is missing a required parameter.

func MissingURLParam

func MissingURLParam(param string) error

MissingURLParam returns a Formatted Error

func ParseDuration

func ParseDuration(input string) (time.Duration, error)

ParseDuration returns a Duration Parsing Error

func ParseRequestBody

func ParseRequestBody(err error) error

ParseRequestBody returns an error indicating the request body could not parsed into a valid value.

func TimeArrayEmpty

func TimeArrayEmpty(param string) error

TimeArrayEmpty returns a Formatted Error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL