routes

package
v0.0.0-...-eca6f23 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DebugWrapper = Wrap

Wrapper make sure we are backward compatible.

Functions

func BlockHandler

func BlockHandler() echo.HandlerFunc

BlockHandler will pass the call from /debug/pprof/block to pprof.

func BuildRouter

func BuildRouter(c *services.Container)

BuildRouter builds the HTTP router for all endpoint handlers.

func CmdlineHandler

func CmdlineHandler() echo.HandlerFunc

CmdlineHandler will pass the call from /debug/pprof/cmdline to pprof.

func GoroutineHandler

func GoroutineHandler() echo.HandlerFunc

GoroutineHandler will pass the call from /debug/pprof/goroutine to pprof.

func HeapHandler

func HeapHandler() echo.HandlerFunc

HeapHandler will pass the call from /debug/pprof/heap to pprof.

func IndexHandler

func IndexHandler() echo.HandlerFunc

IndexHandler will pass the call from /debug/pprof to pprof.

func MutexHandler

func MutexHandler() echo.HandlerFunc

MutexHandler will pass the call from /debug/pprof/mutex to pprof.

func ProfileHandler

func ProfileHandler() echo.HandlerFunc

ProfileHandler will pass the call from /debug/pprof/profile to pprof.

func SymbolHandler

func SymbolHandler() echo.HandlerFunc

SymbolHandler will pass the call from /debug/pprof/symbol to pprof.

func ThreadCreateHandler

func ThreadCreateHandler() echo.HandlerFunc

ThreadCreateHandler will pass the call from /debug/pprof/threadcreate to pprof.

func TraceHandler

func TraceHandler() echo.HandlerFunc

TraceHandler will pass the call from /debug/pprof/trace to pprof.

func Wrap

func Wrap(e *echo.Echo)

Wrap adds several routes from package `net/http/pprof` to *echo.Echo object.

func WrapGroup

func WrapGroup(prefix string, g *echo.Group)

WrapGroup adds several routes from package `net/http/pprof` to *echo.Group object.

Types

type Hello

type Hello struct {
	controller.Controller
}

func (*Hello) Get

func (c *Hello) Get(ctx echo.Context) error

type Item

type Item struct {
	controller.Controller
}

Item is the controller for the Item-based routes.

func (Item) Delete

func (c Item) Delete(ctx echo.Context) error

Delete attempts to delete the specified item.

func (Item) Get

func (c Item) Get(ctx echo.Context) error

Get attempts to fetch the item identified by the id parameter.

func (Item) Post

func (c Item) Post(ctx echo.Context) error

Post attempts to create a new Item.

func (Item) Put

func (c Item) Put(ctx echo.Context) error

Put attempts to update an existing item.

Jump to

Keyboard shortcuts

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