actions

package
v0.0.0-...-3a55c04 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RTFetch

func RTFetch(ctx context.Context, target string, feedId string, feedUrl string, urlType string) error

func StaticFetch

func StaticFetch(ctx context.Context, feedId string, feedSrc io.Reader, feedUrl string) (*model.FeedVersionFetchResult, error)

func ValidateUpload

func ValidateUpload(ctx context.Context, src io.Reader, feedURL *string, rturls []string) (*model.ValidationReport, error)

ValidateUpload takes a file Reader and produces a validation package containing errors, warnings, file infos, service levels, etc.

Types

type CheckFetchWaitResult

type CheckFetchWaitResult struct {
	ID               int
	OnestopID        tt.String
	FetchWait        tt.Int
	LastFetchedAt    tt.Time
	URLType          string
	DefaultFetchWait int64
	Failures         int
	CheckedAt        time.Time
}

func CheckFetchWaitBatch

func CheckFetchWaitBatch(ctx context.Context, db sqlx.Ext, feedIds []int, urlType string) ([]CheckFetchWaitResult, error)

func (*CheckFetchWaitResult) Deadline

func (check *CheckFetchWaitResult) Deadline() time.Duration

func (*CheckFetchWaitResult) OK

func (check *CheckFetchWaitResult) OK() bool

Jump to

Keyboard shortcuts

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