handler

package
v0.2.14 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCacheWarmup added in v0.2.11

func NewCacheWarmup(URI string, meta *meta.Config, lookup warmup.PreCachables) http.Handler

NewCacheWarmup creates a cache warmup handler

func NewConfig

func NewConfig(gateway *gateway.Config, endpoint *endpoint.Config, meta *meta2.Config) http.Handler

NewConfig creates config handler

func NewStatus

func NewStatus(version string, meta *meta2.Config) http.Handler

NewStatus creates a status handler

func NewView

func NewView(URI string, meta *meta2.Config, lookup ViewLookupFn) http.Handler

NewView creates view handler

Types

type Config

type Config struct {
	Gateway  *gateway.Config
	Endpoint *endpoint.Config
	Meta     *meta2.Config
}

type OpenAPI added in v0.2.1

type OpenAPI struct {
	APIPrefix string
	// contains filtered or unexported fields
}

func NewOpenApi added in v0.2.1

func NewOpenApi(aPIPrefix, baseURL string, info openapi3.Info, routesFn RoutesFn) *OpenAPI

func (*OpenAPI) ServeHTTP added in v0.2.1

func (o *OpenAPI) ServeHTTP(writer http.ResponseWriter, req *http.Request)

type RoutesFn added in v0.2.1

type RoutesFn func(route string) []*router.Route

type ViewLookupFn added in v0.2.7

type ViewLookupFn func(method, location string) (*view.View, error)

Jump to

Keyboard shortcuts

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