http

package
v1.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoErrorHandler added in v1.0.4

func EchoErrorHandler(err error, c echo.Context)

EchoErrorHandler for handle error to http error

func EchoNotFoundHandler added in v1.0.5

func EchoNotFoundHandler(c echo.Context) error

EchoNotFoundHandler responds not found response.

func NewEcho added in v0.0.2

func NewEcho(config Config) *echo.Echo

NewEcho new echo http engine constructor

func RunEcho added in v0.0.2

func RunEcho(engine *echo.Echo, config Config, lifecycle fx.Lifecycle) *echo.Echo

RunEcho for use uber fx to start http service

Types

type Config

type Config struct {
	Mode string `mapstructure:"mode"`
	Port string `mapstructure:"port"`
	Dump bool   `mapstructure:"dump"`
}

type EchoValidator added in v1.0.5

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

EchoValidator fot echo default validator

func NewEchoValidator added in v1.0.5

func NewEchoValidator() *EchoValidator

NewEchoValidator new echo validator

func (*EchoValidator) Validate added in v1.0.5

func (e *EchoValidator) Validate(i interface{}) error

Validate for echo validator interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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