job

package
v0.0.0-...-f46418c Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAuthor = "Tinderizer"

Variables

View Source
var (
	Tmp                 = "tmp"
	BadUrlError         = errors.New("Sorry, but this URL doesn't look like it'll work.")
	BlacklistedUrlError = errors.New("Sorry, but this URL has proven to not work, and has been blacklisted.")
	NoKeyError          = errors.New("No key generated")
	NoDirectoryError    = errors.New("No working directory made")
	ParamsToClean       = []string{"utm_source", "utm_medium", "utm_campaign", "utm_content"}
)

Functions

This section is empty.

Types

type Job

type Job struct {
	Url, Email, Title, Author, Domain, Friendly string
	Key                                         *uuid.UUID
	Doc                                         *html.Node
	StartedAt                                   time.Time
}

func New

func New(email, uri string) (*Job, error)

func (*Job) GoString

func (j *Job) GoString() string

func (*Job) HTML

func (j *Job) HTML() template.HTML

func (*Job) HTMLFilePath

func (j *Job) HTMLFilePath() string

func (*Job) HTMLFilename

func (j *Job) HTMLFilename() string

func (*Job) Hash

func (j *Job) Hash() string

func (*Job) MobiFilePath

func (j *Job) MobiFilePath() string

func (*Job) MobiFilename

func (j *Job) MobiFilename() string

func (*Job) Now

func (j *Job) Now() string

func (*Job) Progress

func (j *Job) Progress(message string)

func (*Job) Root

func (j *Job) Root() string

Jump to

Keyboard shortcuts

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