service

package
v0.0.0-...-9a318e1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronService

type CronService struct {
	Scheduler             *cron.Cron
	ChatRepository        storage.ChatRepository
	TelegramNotifications *jobs.TelegramNotifications
}

func NewCronService

func NewCronService(sh *cron.Cron, r storage.ChatRepository, tn *jobs.TelegramNotifications) *CronService

func (*CronService) Init

func (c *CronService) Init()

func (*CronService) RemoveJob

func (c *CronService) RemoveJob(chat *models.Chat)

func (*CronService) SetJob

func (c *CronService) SetJob(chat *models.Chat, notificationCron string) (cron.EntryID, error)

func (*CronService) Start

func (c *CronService) Start()

type Deps

type Deps struct {
	Bot          *tgbotapi.BotAPI
	Config       *config.IniConf
	Repositories *storage.Repositories
}

type Services

type Services struct {
	Bot          *tgbotapi.BotAPI
	Config       *config.IniConf
	Repositories *storage.Repositories
}

func NewServices

func NewServices(deps Deps) *Services

Jump to

Keyboard shortcuts

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