Documentation ¶
Index ¶
- Variables
- func AddDebugHandlers(ctx context.Context, e *echo.Echo, rbac echo.MiddlewareFunc)
- func CronDetailsHandler() func(c echo.Context) error
- func Properties(c echov4.Context) error
- func RegisterCron(cron *cron.Cron)
- func RestrictToLocalhost(next echo.HandlerFunc) echo.HandlerFunc
- type JobCronEntry
Constants ¶
This section is empty.
Variables ¶
View Source
var Crons = cmap.New[*cron.Cron]()
Functions ¶
func AddDebugHandlers ¶
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 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
Click to show internal directories.
Click to hide internal directories.