scanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TicketScanner

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

func NewTicketScanner

func NewTicketScanner(tsc TicketScannerConfig) *TicketScanner

func (*TicketScanner) IsRunning

func (s *TicketScanner) IsRunning() bool

func (*TicketScanner) Start

func (s *TicketScanner) Start(ctx context.Context) error

Start the worker - blocks until stopped

func (*TicketScanner) Stop

func (s *TicketScanner) Stop()

Stop the worker - blocks until stopped

func (*TicketScanner) UpdateConfig

func (s *TicketScanner) UpdateConfig(conf TicketScannerConfig)

UpdateConfig updates the config of the scanner. This can be called while the scanner is running. Note: RefetchTime cannot be changed while the scanner is running, so, UpdateConfig will ignore any changes to it

func (*TicketScanner) WaitUntilStopped

func (s *TicketScanner) WaitUntilStopped()

type TicketScannerConfig

type TicketScannerConfig struct {
	TwicketsClient      *twigots.Client
	NotificationClients map[config.NotificationType]notification.Client
	ListingConfigs      []config.TicketListingConfig
	RefetchTime         time.Duration
}

Jump to

Keyboard shortcuts

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