configurator

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurator

type Configurator func(*echo.Echo) error

Configurator is custom function configurator.

func NewController

func NewController(controllers []Controller) Configurator

NewController is echo configurator constructor.

func NewEcho

func NewEcho(cfg *viper.Viper) Configurator

NewEcho is echo configurator constructor.

func NewErrHandler

func NewErrHandler(logger *zap.Logger) Configurator

NewErrHandler is configurator constructor.

func NewMiddleware

func NewMiddleware(mws []echo.MiddlewareFunc) Configurator

NewMiddleware is echo configurator constructor.

func NewValidator

func NewValidator(v *validator.Validate) Configurator

NewValidator is echo configurator constructor.

type Controller

type Controller interface {
	Serve(e *echo.Echo)
}

Controller is a controller interface.

type Decorator

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

Decorator implementation.

func (*Decorator) Validate

func (v *Decorator) Validate(i interface{}) error

Validate data

Jump to

Keyboard shortcuts

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