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

echo

package
v1.0.1416 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 18 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 FeatureFlags added in v1.0.1413

func FeatureFlags(c echov4.Context) error

FeatureFlags returns only properties safe to expose to every signed-in user.

func Properties

func Properties(c echov4.Context) error

Properties returns all properties and must be protected by the caller's property-management authorization.

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