MCPcopy
hub / github.com/mcuadros/ofelia / buildSchedulerMiddlewares

Method buildSchedulerMiddlewares

cli/config.go:145–149  ·  view source on GitHub ↗
(sh *core.Scheduler)

Source from the content-addressed store, hash-verified

143}
144
145func (c *Config) buildSchedulerMiddlewares(sh *core.Scheduler) {
146 sh.Use(middlewares.NewSlack(&c.Global.SlackConfig))
147 sh.Use(middlewares.NewSave(&c.Global.SaveConfig))
148 sh.Use(middlewares.NewMail(&c.Global.MailConfig))
149}
150
151// ExecJobConfig contains all configuration params needed to build a ExecJob
152type ExecJobConfig struct {

Callers 1

buildMethod · 0.95

Calls 4

NewSlackFunction · 0.92
NewSaveFunction · 0.92
NewMailFunction · 0.92
UseMethod · 0.65

Tested by

no test coverage detected