processors

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 15 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.Cache) ([]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, cache *entity.Cache) ([]entity.File, error)

type Processors

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

func NewProcessors

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

func (*Processors) GetMeta added in v0.1.3

func (p *Processors) GetMeta(ctx context.Context, url string, cache *entity.Cache) (entity.Meta, 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, cache *entity.Cache) entity.Result

type SingleFile

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

func NewSingleFile

func NewSingleFile(client *http.Client, log *zap.Logger) *SingleFile

func (*SingleFile) Process

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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