types

package
v0.0.0-...-b1f2762 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AudioHLS

type AudioHLS interface {
	Playlist(body string) (tsaudio []model.File, err error)
	TSAudio(tsaudio model.File) (keys []model.File, audio []model.File, err error)
	CheckAlreadyLoaded(filename string) bool
}

type LoadStatus

type LoadStatus interface {
	Inc(step int)
	Total(total int)
}

type Loader

type Loader interface {
	Text(url string, opts *model.LoaderOpts) (*string, error)
	JSON(url string, dest interface{}, opts *model.LoaderOpts) error
	Raw(url string, opts *model.LoaderOpts) ([]byte, error)
}

type LoaderNew

type LoaderNew interface {
	Url(url string) LoaderNew
	Headers(headers map[string]string) LoaderNew
	Transform(func(content []byte) (err error)) LoaderNew

	JSON(output interface{}) error
	Save(filepath string) error
}

Jump to

Keyboard shortcuts

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