actions

package
v0.0.0-...-46f2281 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FeedVersionDelete

func FeedVersionDelete(ctx context.Context, fvid int) (*model.FeedVersionDeleteResult, error)

func FeedVersionImport

func FeedVersionImport(ctx context.Context, fvid int) (*model.FeedVersionImportResult, error)

func FeedVersionUnimport

func FeedVersionUnimport(ctx context.Context, fvid int) (*model.FeedVersionUnimportResult, error)

func FeedVersionUpdate

func FeedVersionUpdate(ctx context.Context, values model.FeedVersionSetInput) (int, error)

func GbfsFetch

func GbfsFetch(ctx context.Context, feedId string, feedUrl string) error

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 Actions

type Actions struct{}

func (Actions) FeedVersionDelete

func (Actions) FeedVersionDelete(ctx context.Context, fvid int) (*model.FeedVersionDeleteResult, error)

func (Actions) FeedVersionImport

func (Actions) FeedVersionImport(ctx context.Context, fvid int) (*model.FeedVersionImportResult, error)

func (Actions) FeedVersionUnimport

func (Actions) FeedVersionUnimport(ctx context.Context, fvid int) (*model.FeedVersionUnimportResult, error)

func (Actions) FeedVersionUpdate

func (Actions) FeedVersionUpdate(ctx context.Context, values model.FeedVersionSetInput) (int, error)

func (Actions) GbfsFetch

func (Actions) GbfsFetch(ctx context.Context, feedId string, feedUrl string) error

func (Actions) RTFetch

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

func (Actions) StaticFetch

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

func (Actions) ValidateUpload

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

Jump to

Keyboard shortcuts

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