cron

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJob

type CronJob struct {
	// contains filtered or unexported fields
}

CronJob triggers applications

func NewCronJob

func NewCronJob(
	log *logrus.Entry, application *application.Application) *CronJob

NewCronJob service

func (*CronJob) ClearDatabase

func (c *CronJob) ClearDatabase(ctx context.Context)

ClearDatabase delete old trainalarms from database

func (*CronJob) NotificationChannel

func (c *CronJob) NotificationChannel() chan telegramconversation.TContext

NotificationChannel returns the channel with telegram notifications

func (*CronJob) NotifyUsers

func (c *CronJob) NotifyUsers(ctx context.Context)

NotifyUsers about train delays

func (*CronJob) Start

func (c *CronJob) Start(ctx context.Context)

Start ticker

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL