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) 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
}
Click to show internal directories.
Click to hide internal directories.