handler

package
v0.0.0-...-68c1bff Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortIdentifiers

func SortIdentifiers(allIdentifiers []string, firstValue string) []string

Types

type BadRequestError

type BadRequestError struct {
	// contains filtered or unexported fields
}

func NewBadRequestError

func NewBadRequestError(reason string) BadRequestError

func (BadRequestError) Error

func (err BadRequestError) Error() string

type TileHandler

type TileHandler interface {
	Identifier() string
	PathPattern() string
	Keys(request *http.Request) (map[string]string, error)
	AsZXY(request *http.Request) ([3]int, error)
}

type TileUtil

type TileUtil struct {
	// contains filtered or unexported fields
}

func NewTileUtil

func NewTileUtil() TileUtil

func (TileUtil) GenerateTile

func (util TileUtil) GenerateTile(opacity uint8, labels ...string) image.Image

func (TileUtil) GetEncoder

func (util TileUtil) GetEncoder(request *http.Request) (encoder func(io.Writer, image.Image) error, supportsOpacity bool)

type UnprocessableEntityError

type UnprocessableEntityError struct {
	// contains filtered or unexported fields
}

func NewUnprocessableEntityError

func NewUnprocessableEntityError(reason string) UnprocessableEntityError

func (UnprocessableEntityError) Error

func (err UnprocessableEntityError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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