sites

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFinderError

func NewFinderError(err error, html []byte, entity string) error

Types

type Agenda

type Agenda struct {
	Name    string
	Content io.ReadCloser
}

type DefaultFetcher

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

func NewDefaultFetcher

func NewDefaultFetcher(client HTTPClient, today time.Time) DefaultFetcher

func (DefaultFetcher) Simple

func (f DefaultFetcher) Simple(ctx context.Context, site SimpleSite) (Agenda, error)

type Fetcher

type Fetcher interface {
	Simple(ctx context.Context, site SimpleSite) (Agenda, error)
}

type FinderError

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

func (*FinderError) Filename

func (e *FinderError) Filename() string

func (*FinderError) HTML

func (e *FinderError) HTML() []byte

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}

type SimpleSite

type SimpleSite struct {
	Entity  string
	BaseURL string
	OutExt  string
	Finder  func(*goquery.Document, time.Time) (string, error)
}

func Bakersfield

func Bakersfield() SimpleSite

func Fresno

func Fresno() SimpleSite

func Oakland

func Oakland() SimpleSite

func Pasadena

func Pasadena() SimpleSite

func SanFrancisco

func SanFrancisco() SimpleSite

Jump to

Keyboard shortcuts

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