refresher

package
v0.0.0-...-bcb87c1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartScheduler

func StartScheduler(ctx context.Context, r *Refresher)

Types

type Refresher

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

func New

func (*Refresher) CountRowsAwaitingRefresh

func (r *Refresher) CountRowsAwaitingRefresh(ctx context.Context) (int64, error)

func (*Refresher) ExplainSelectQuery

func (r *Refresher) ExplainSelectQuery(ctx context.Context) (string, error)

func (*Refresher) Run

func (r *Refresher) Run(ctx context.Context) error

func (*Refresher) SelectRowsToProcess

func (r *Refresher) SelectRowsToProcess(ctx context.Context, tx pgx.Tx) ([]RowToProcess, error)

type RowToProcess

type RowToProcess struct {
	Url          string
	MD5          types.MD5Hash
	FetchStatus  int
	FetchHeaders feed.HeaderMap
}

Jump to

Keyboard shortcuts

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