app

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const MaxManualPollTimes = 100

Variables

This section is empty.

Functions

func Migrate

func Migrate(ctx context.Context, cfg *config.Config) error

func ParsePollSources

func ParsePollSources(cfg *config.Config, value string) ([]config.SourceConfig, error)

func ParseQueues

func ParseQueues(cfg *config.Config, value string) ([]string, error)

func Run

func Run(ctx context.Context, cfg *config.Config) error

func Serve

func Serve(ctx context.Context, cfg *config.Config) error

func Worker

func Worker(ctx context.Context, cfg *config.Config, queueNames []string) error

Types

type QueuedPoll

type QueuedPoll struct {
	SourceID string    `json:"source_id"`
	Number   int       `json:"number"`
	RunID    uuid.UUID `json:"run_id"`
	JobID    int64     `json:"job_id"`
}

func EnqueuePolls

func EnqueuePolls(
	ctx context.Context,
	cfg *config.Config,
	sources []config.SourceConfig,
	times int,
	limit int,
) ([]QueuedPoll, error)

Jump to

Keyboard shortcuts

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