processor

package
v0.0.0-...-3599083 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessCSSFile

func ProcessCSSFile(req Request) (Resource, []Resource, error)

ProcessCSSFile process CSS file.

func ProcessHTMLFile

func ProcessHTMLFile(req Request) (Resource, []Resource, error)

ProcessHTMLFile process HTML file.

Types

type Request

type Request struct {
	Reader io.Reader
	URL    string
}

Request is struct that contains data that want to be processed.

type Resource

type Resource struct {
	Name    string
	URL     string
	Content []byte
	IsEmbed bool
}

Resource is struct that contains URL for downloading and archiving a resource.

func ProcessGeneralFile

func ProcessGeneralFile(req Request) (Resource, error)

ProcessGeneralFile process files that not HTML, JS or CSS.

Jump to

Keyboard shortcuts

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