Help us shape the future of Go! Take the 2026 Go Developer Survey

echo

package
v1.0.1398 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0 Imports: 17 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Crons = cmap.New[*cron.Cron]()

Functions

func AddDebugHandlers

func AddDebugHandlers(ctx context.Context, e *echo.Echo, rbac echo.MiddlewareFunc)

func CronDetailsHandler added in v1.0.577

func CronDetailsHandler() func(c echo.Context) error

func Properties

func Properties(c echov4.Context) error

func RegisterCron added in v1.0.577

func RegisterCron(cron *cron.Cron)

func RestrictToLocalhost

func RestrictToLocalhost(next echo.HandlerFunc) echo.HandlerFunc

RestrictToLocalhost is a middleware that restricts access to localhost

Types

type JobCronEntry added in v1.0.577

type JobCronEntry struct {
	Context   map[string]any `json:"context"`
	ID        string         `json:"id"`
	LastRan   time.Time      `json:"last_ran,omitempty"`
	NextRun   time.Time      `json:"next_run"`
	NextRunIn string         `json:"next_run_in"`
}

func (JobCronEntry) GetName added in v1.0.577

func (j JobCronEntry) GetName() string

Jump to

Keyboard shortcuts

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