valid

package
v0.0.0-...-1775924 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parameter

func Parameter(key, value string) error

Parameter validates the same parameters as Query without the need to create url.Values.

func ParseDays

func ParseDays(s string) (int, error)

func ParseShowMethod

func ParseShowMethod(s string) (bool, error)

func ParseStart

func ParseStart(s string) (time.Time, error)

func ParseWidth

func ParseWidth(s string) (int, error)

func ParseYrange

func ParseYrange(s string) (float64, float64, error)

func Query

func Query(values url.Values) error

bbox days insetBbox label methodID networkID scheme showMethod siteID sites start stddev srsName typeID width within yrange type

Implements weft.QueryValidator

Types

type Error

type Error struct {
	Code int
	Err  error
}

implements weft.Error

func (Error) Error

func (s Error) Error() string

func (Error) Status

func (s Error) Status() int

Jump to

Keyboard shortcuts

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