councildistricts

package
v0.0.0-...-268a1c9 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScraperName         = "COUNCIL-DISTRICTS"
	CouncilDistrictsURL = "https://opendata.arcgis.com/datasets/4593a994e7644bcc91d9e1c096df1734_0.geojson"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CouncilDistrictScraper

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

func NewScraper

func NewScraper() *CouncilDistrictScraper

func (*CouncilDistrictScraper) Configure

func (s *CouncilDistrictScraper) Configure(pool *pgxpool.Pool) (err error)

func (*CouncilDistrictScraper) EnqueueJobs

func (s *CouncilDistrictScraper) EnqueueJobs() ([]infra.Job, error)

func (*CouncilDistrictScraper) HandleResponse

func (s *CouncilDistrictScraper) HandleResponse(j infra.Job, resp *http.Response, httpErr error) (*infra.Job, error)

func (*CouncilDistrictScraper) MakeRequest

func (s *CouncilDistrictScraper) MakeRequest(j infra.Job) (*http.Request, error)

type CouncilDistricts

type CouncilDistricts struct {
	Features *geojson.FeatureCollection
}

func ParseCouncilDistricts

func ParseCouncilDistricts(encoded []byte) (*CouncilDistricts, error)

type Repo

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

func NewRepo

func NewRepo(conn *pgxpool.Pool) *Repo

func (*Repo) StoreCouncilDistricts

func (r *Repo) StoreCouncilDistricts(districts *CouncilDistricts) error

Jump to

Keyboard shortcuts

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