echo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrListenAddressRequired = errors.New("listen address is required")

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress string `env:"HTTP_ECHO_LISTENADDRESS"`
	OASPath       string `env:"HTTP_ECHO_OASPATH"`
	SwaggerUIPath string `env:"HTTP_ECHO_SWAGGERUIPATH"`
}

type Echo

type Echo struct {
	Echo        *echo.Echo
	RouterGroup *echo.Group
	// contains filtered or unexported fields
}

func New

func New(
	rootPath string,
	swaggerYAML []byte,
	middlewares []echo.MiddlewareFunc,
) (*Echo, error)

func NewWithConfig

func NewWithConfig(
	cfg Config,
	rootPath string,
	swaggerYAML []byte,
	middlewares []echo.MiddlewareFunc,
) (*Echo, error)

func (*Echo) Start

func (e *Echo) Start(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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