server

package
v0.0.0-...-69e7fd1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller interface {
	Route(e *echo.Group)
}

type Option

type Option func(e *echo.Echo)

func WithErrorHandle

func WithErrorHandle(handle echo.HTTPErrorHandler) Option

func WithRender

func WithRender(render echo.Renderer) Option

func WithValidate

func WithValidate(validator echo.Validator) Option

type Server

type Server struct {
	*echo.Echo
}

func New

func New(options ...Option) *Server

func (*Server) ApplyController

func (s *Server) ApplyController(prefix string, cs []Controller, ms ...echo.MiddlewareFunc)

Jump to

Keyboard shortcuts

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