schedule

package
v0.0.0-...-934b67a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartUpdateBatchSchedule

func StartUpdateBatchSchedule(ctx context.Context, chatIDs []int64, batchSize, guessedStreakLimit int, repo dal.Repository, log *slog.Logger)

func StartWordCheckSchedule

func StartWordCheckSchedule(ctx context.Context, conf WordCheckConfig, p Publisher, log *slog.Logger)

Types

type Publisher

type Publisher interface {
	SendWordCheck(ctx context.Context, chatID int64) error
}

type WordCheckConfig

type WordCheckConfig struct {
	ChatIDs  []int64
	Interval time.Duration
	HourFrom int
	HourTo   int
	Location *time.Location
}

Jump to

Keyboard shortcuts

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