📋
Eather
  • Eather
  • Module Development
    • Create new Module
    • Empty Module
    • Installable
    • Upgradable
    • Routable
    • Eventable
    • Cronable
    • Callable
Powered by GitBook
On this page

Was this helpful?

  1. Module Development

Cronable

Add function Crons() and module will be Cronable.

.
.
.

func (m module) Crons() eather.CronList {
	return eather.CronList{
		eather.Cron{Spec: "* * * * *", Cmd: func() { fmt.Println("test") }},
	}
}

.
.
.

This will run every second function Cmd and will print test into the terminal.

PreviousEventableNextCallable

Last updated 5 years ago

Was this helpful?