middleware

package
v2.2.11 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: MIT Imports: 35 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

This section is empty.

Types

type Builder

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

Builder the middleware builder.

func NewBuilder

func NewBuilder(configs map[string]*runtime.MiddlewareInfo, serviceBuilder serviceBuilder) *Builder

NewBuilder creates a new Builder.

func (*Builder) BuildChain

func (b *Builder) BuildChain(ctx context.Context, middlewares []string) *alice.Chain

BuildChain creates a middleware chain.

type ChainBuilder added in v2.1.0

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

ChainBuilder Creates a middleware chain by entry point. It is used for middlewares that are created almost systematically and that need to be created before all others.

func NewChainBuilder added in v2.1.0

func NewChainBuilder(staticConfiguration static.Configuration, metricsRegistry metrics.Registry, accessLoggerMiddleware *accesslog.Handler) *ChainBuilder

NewChainBuilder Creates a new ChainBuilder.

func (*ChainBuilder) Build added in v2.1.0

func (c *ChainBuilder) Build(ctx context.Context, entryPointName string) alice.Chain

Build a middleware chain by entry point.

func (*ChainBuilder) Close added in v2.1.0

func (c *ChainBuilder) Close()

Close accessLogger and tracer.

Jump to

Keyboard shortcuts

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