cron

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NoRootsDefined = errors.Business("No roots defined", "CR:002")
	BackupIsEmpty  = errors.Business("🪣 Backup is empty", "CR:003")
)
View Source
var ErrNoChatToBroadcast = errors.Business("No chats to broadcast", "CRON:001")

Functions

This section is empty.

Types

type Jobs

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

func New

func New(ctx context.Context, opts Options) (*Jobs, error)

func (*Jobs) Backup

func (j *Jobs) Backup(ctx context.Context) error

func (*Jobs) LastVideos

func (j *Jobs) LastVideos(ctx context.Context) error

func (*Jobs) Start

func (j *Jobs) Start(ctx context.Context) error

type MessageBuilder

type MessageBuilder func(sender.Chats) ([]sender.Sendable, error)

type Options

type Options struct {
	Bot      *telebot.Bot
	Database database.Database
	YouTube  ytube.Service
	Config   config.AppConfig
}

Jump to

Keyboard shortcuts

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