request

package
v0.0.0-...-5cd0c88 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheRequest

type CacheRequest struct {
	Key string
	Hit bool
}

func (CacheRequest) Map

func (cr CacheRequest) Map() map[string]interface{}

func (CacheRequest) Serialize

func (cr CacheRequest) Serialize(format string) (string, error)

func (CacheRequest) String

func (cr CacheRequest) String() string

type ErrQueryStringParameterMissing

type ErrQueryStringParameterMissing struct {
	Name string
}

func (ErrQueryStringParameterMissing) Error

type QueryString

type QueryString struct {
	Params map[string][]string
}

func NewQueryString

func NewQueryString(r *http.Request) QueryString

func (QueryString) FirstInt

func (qs QueryString) FirstInt(name string) (int, error)

func (QueryString) FirstString

func (qs QueryString) FirstString(name string) (string, error)

type Request

type Request interface {
	String() string
	Map() map[string]interface{}
	Serialize(format string) (string, error)
}

type TileRequest

type TileRequest struct {
	Header        http.Header
	Layer         string
	Tile          core.Tile
	Bbox          []float64
	Source        string
	Expression    string
	Features      int
	OutsideExtent bool
}

func (TileRequest) Map

func (tr TileRequest) Map() map[string]interface{}

func (TileRequest) Serialize

func (tr TileRequest) Serialize(format string) (string, error)

func (TileRequest) String

func (tr TileRequest) String() string

Jump to

Keyboard shortcuts

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