notifications

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchNotificationsWorker

type FetchNotificationsWorker struct {
	Logger   moira.Logger
	Database moira.Database
	Notifier notifier.Notifier
	// contains filtered or unexported fields
}

FetchNotificationsWorker - check for new notifications and send it using notifier

func (*FetchNotificationsWorker) Start

func (worker *FetchNotificationsWorker) Start()

Start is a cycle that fetches scheduled notifications from database

func (*FetchNotificationsWorker) Stop

func (worker *FetchNotificationsWorker) Stop() error

Stop stops new notifications fetching and wait for finish

Jump to

Keyboard shortcuts

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