echo

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 8

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
}

func NewBuilder

func NewBuilder(addr string) *Builder

func (*Builder) APIRegistration

func (b *Builder) APIRegistration(api Register) *Builder

func (*Builder) Build

func (b *Builder) Build() (async.Task, error)

func (*Builder) MetricNamespace

func (b *Builder) MetricNamespace(namespace string) *Builder

MetricNamespace is modifying the namespace that will be used next ot prefix every metrics exposed

func (*Builder) Middleware

func (b *Builder) Middleware(mdw echo.MiddlewareFunc) *Builder

Middleware is adding the provided middleware into the Builder Order matters, add the middleware in the order you would like to see them started.

func (*Builder) OverrideDefaultMiddleware

func (b *Builder) OverrideDefaultMiddleware(override bool) *Builder

OverrideDefaultMiddleware is setting a flag that will tell if the Builder needs to override the default list of middleware considered by the one provided by the method Middleware In case the flag is set at false, then the middleware provided by the user will be append to the default list. Note that the default list is always executed at the beginning (a.k.a, the default middleware will be executed before yours).

type Register

type Register interface {
	RegisterRoute(e *echo.Echo)
}

func NewMetricsAPI

func NewMetricsAPI(disableCompression bool) Register

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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