Documentation ¶
Overview ¶
Example ¶
c := cron.New( cron.WithSeconds(), cron.WithMiddleware( /*...*/ ), ) _, _ = c.AddFunc("* * * * * *", func(context.Context) error { // do something return nil }) // kratos app start app := kratos.New( kratos.Server( crontab.NewServer(c), ), ) err := app.Run() if err != nil { panic(err) }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.