handler

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 func(location string) (*view.View, error)) 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

Jump to

Keyboard shortcuts

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