scheduler

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 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 Scheduler

type Scheduler struct {
	ReadDB  *pgxpool.Pool
	WriteDB *pgxpool.Pool
	Cron    *cron.Cron
	Queue   *queue.Queue
	OnEvent func(event, details string)
}

func New

func New(readDB *pgxpool.Pool, writeDB *pgxpool.Pool, q *queue.Queue) *Scheduler

func (*Scheduler) CleanupOAuthStates

func (s *Scheduler) CleanupOAuthStates(ctx context.Context)

func (*Scheduler) PruneOldData

func (s *Scheduler) PruneOldData(ctx context.Context)

func (*Scheduler) RunExtraction

func (s *Scheduler) RunExtraction(ctx context.Context)

func (*Scheduler) Start

func (s *Scheduler) Start()

func (*Scheduler) Stop

func (s *Scheduler) Stop()

func (*Scheduler) SyncAllUsers

func (s *Scheduler) SyncAllUsers(ctx context.Context)

Jump to

Keyboard shortcuts

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