http

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2020 License: BSD-3-Clause Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndpointFromRequest

func EndpointFromRequest(r *gohttp.Request) string

func ExampleHandler

func ExampleHandler(root string) (gohttp.HandlerFunc, error)

func ExpvarHandler

func ExpvarHandler(host string) (gohttp.HandlerFunc, error)

func ImageHandler

func ImageHandler(config *iiifconfig.Config, driver iiifdriver.Driver, images_cache iiifcache.Cache, derivatives_cache iiifcache.Cache) (gohttp.HandlerFunc, error)

func InfoHandler

func InfoHandler(config *iiifconfig.Config, driver iiifdriver.Driver) (gohttp.HandlerFunc, error)

func PingHandler

func PingHandler() (gohttp.HandlerFunc, error)

Types

type IIIFParameters

type IIIFParameters struct {
	Identifier string
	Region     string
	Size       string
	Rotation   string
	Quality    string
	Format     string
}

type IIIFQueryParser

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

func NewIIIFQueryParser

func NewIIIFQueryParser(r *gohttp.Request) (*IIIFQueryParser, error)

func (*IIIFQueryParser) GetIIIFParameter

func (p *IIIFQueryParser) GetIIIFParameter(key string) (string, error)

func (*IIIFQueryParser) GetIIIFParameters

func (p *IIIFQueryParser) GetIIIFParameters() (*IIIFParameters, error)

Jump to

Keyboard shortcuts

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