server

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2025 License: AGPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx *context.Context) error

type Middleware

type Middleware func(next Handler) Handler

type Router

type Router struct {
	*echo.Group
}

Router wraps echo.Group to provide custom Handler support

func NewRouter

func NewRouter(g *echo.Group) *Router

func (*Router) Any

func (r *Router) Any(path string, h Handler, m ...Middleware)

func (*Router) DELETE

func (r *Router) DELETE(path string, h Handler, m ...Middleware)

func (*Router) GET

func (r *Router) GET(path string, h Handler, m ...Middleware)

func (*Router) PATCH

func (r *Router) PATCH(path string, h Handler, m ...Middleware)

func (*Router) POST

func (r *Router) POST(path string, h Handler, m ...Middleware)

func (*Router) PUT

func (r *Router) PUT(path string, h Handler, m ...Middleware)

func (*Router) SubGroup

func (r *Router) SubGroup(prefix string, m ...Middleware) *Router

func (*Router) Use

func (r *Router) Use(middleware ...Middleware)

type Server

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

func NewServer

func NewServer(isDev bool, sessionsPath string, ignoreCsrf bool) *Server

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

func (*Server) Start

func (s *Server) Start()

func (*Server) Stop

func (s *Server) Stop()

type Template

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

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, _ echo.Context) error

Jump to

Keyboard shortcuts

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