processors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: BSD-4-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Headers

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

func NewHeaders

func NewHeaders(client *http.Client) *Headers

func (*Headers) Process

func (h *Headers) Process(ctx context.Context, url string) ([]entity.File, error)

type PDF

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

func NewPDF

func NewPDF(cfg config.PDF) *PDF

func (*PDF) Process

func (p *PDF) Process(_ context.Context, url string) ([]entity.File, error)

type Processors

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

func NewProcessors

func NewProcessors(cfg config.Config) (*Processors, error)

func (*Processors) OverrideProcessor

func (p *Processors) OverrideProcessor(format entity.Format, proc processor) error

func (*Processors) Process

func (p *Processors) Process(ctx context.Context, format entity.Format, url string) entity.Result

type SingleFile

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

func NewSingleFile

func NewSingleFile(client *http.Client) *SingleFile

func (*SingleFile) Process

func (s *SingleFile) Process(ctx context.Context, url string) ([]entity.File, error)

Jump to

Keyboard shortcuts

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