Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Crons = cmap.New[*cron.Cron]()
Functions ¶
func AddDebugHandlers ¶
func AddDebugHandlers(e *echo.Echo, rbac echo.MiddlewareFunc)
func CronDetailsHandler ¶ added in v1.0.577
func CronDetailsHandler() func(c echo.Context) error
func Properties ¶
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 int `json:"id"` LastRan time.Time `json:"last_ran,omitempty"` Schedule string `json:"schedule"` 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
Click to show internal directories.
Click to hide internal directories.