router

package
v2.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDefaultHTTPRouter added in v2.1.0

func BuildDefaultHTTPRouter() http.Handler

BuildDefaultHTTPRouter creates a default HTTP router.

Types

type Manager

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

Manager A route/router manager.

func NewManager

func NewManager(conf *runtime.Configuration,
	serviceManager serviceManager,
	middlewaresBuilder middlewareBuilder,
	modifierBuilder responseModifierBuilder,
	chainBuilder *middleware.ChainBuilder,
) *Manager

NewManager Creates a new Manager.

func (*Manager) BuildHandlers

func (m *Manager) BuildHandlers(rootCtx context.Context, entryPoints []string, tls bool) map[string]http.Handler

BuildHandlers Builds handler for all entry points.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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