http

package
v0.0.0-...-4c9bff6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoErrorHandler

func EchoErrorHandler(err error, c echo.Context)

EchoErrorHandler error handle for echo

func EchoNotFoundHandler

func EchoNotFoundHandler(c echo.Context) error

EchoNotFoundHandler responds not found response.

func NewEcho

func NewEcho(config Config) *echo.Echo

NewEcho http handler

Types

type Config

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

type EchoValidator

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

EchoValidator fot echo default validator

func NewEchoValidator

func NewEchoValidator() *EchoValidator

NewEchoValidator new echo validator

func (*EchoValidator) Validate

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