screenscrape

package
v0.0.0-...-5812191 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2015 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(sources ...*url.URL)

func SendMail

func SendMail(message string) error

Types

type AcmeComicTask

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

Acme Comics

func (*AcmeComicTask) Result

func (t *AcmeComicTask) Result() *TaskResult

func (*AcmeComicTask) Run

func (t *AcmeComicTask) Run(source *url.URL)

type Record

type Record struct {
	Id       int64     `db:"id"`
	Source   string    `db:"source"`
	Latest   string    `db:"latest"`
	Modified time.Time `db:"modified"`
}

func (*Record) PreInsert

func (p *Record) PreInsert(s gorp.SqlExecutor) error

func (*Record) PreUpdate

func (p *Record) PreUpdate(s gorp.SqlExecutor) error

type Task

type Task interface {
	Run(source *url.URL)
	Result() *TaskResult
}

type TaskResult

type TaskResult struct {
	Source *url.URL
	Result *url.URL
	Error  error
}

Jump to

Keyboard shortcuts

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