router

package
v2.0.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager A route/router manager

func NewManager

func NewManager(conf *runtime.Configuration,
	serviceManager *service.Manager,
	middlewaresBuilder *middleware.Builder,
	modifierBuilder *responsemodifiers.Builder,
) *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

type RouteAppenderAggregator

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

RouteAppenderAggregator RouteAppender that aggregate other RouteAppender

func NewRouteAppenderAggregator

func NewRouteAppenderAggregator(ctx context.Context, chainBuilder chainBuilder, conf static.Configuration,
	entryPointName string, runtimeConfiguration *runtime.Configuration) *RouteAppenderAggregator

NewRouteAppenderAggregator Creates a new RouteAppenderAggregator

func (*RouteAppenderAggregator) AddAppender

func (r *RouteAppenderAggregator) AddAppender(router types.RouteAppender)

AddAppender adds a router in the aggregator

func (*RouteAppenderAggregator) Append

func (r *RouteAppenderAggregator) Append(systemRouter *mux.Router)

Append Adds routes to the router

type RouteAppenderFactory

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

RouteAppenderFactory A factory of RouteAppender

func NewRouteAppenderFactory

func NewRouteAppenderFactory(staticConfiguration static.Configuration, entryPointName string, acmeProvider []*acme.Provider) *RouteAppenderFactory

NewRouteAppenderFactory Creates a new RouteAppenderFactory

func (*RouteAppenderFactory) NewAppender

func (r *RouteAppenderFactory) NewAppender(ctx context.Context, middlewaresBuilder *middleware.Builder, runtimeConfiguration *runtime.Configuration) types.RouteAppender

NewAppender Creates a new RouteAppender

type WithMiddleware

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

WithMiddleware router with internal middleware

func (*WithMiddleware) Append

func (wm *WithMiddleware) Append(systemRouter *mux.Router)

Append Adds routes to the router

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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