neighborhoods

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      = "NEIGHBORHOODS"
	NeighborhoodsURL = "https://opendata.arcgis.com/datasets/e7daa4c977d14e1b9e2fa4d7aff81e59_0.geojson"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type NeighborhoodScraper

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

func NewScraper

func NewScraper() *NeighborhoodScraper

func (*NeighborhoodScraper) Configure

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

func (*NeighborhoodScraper) EnqueueJobs

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

func (*NeighborhoodScraper) HandleResponse

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

func (*NeighborhoodScraper) MakeRequest

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

type Neighborhoods

type Neighborhoods struct {
	Features *geojson.FeatureCollection
}

func ParseNeighborhoods

func ParseNeighborhoods(encoded []byte) (*Neighborhoods, error)

type Repo

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

func NewRepo

func NewRepo(conn *pgxpool.Pool) *Repo

func (*Repo) StoreNeighborhoods

func (r *Repo) StoreNeighborhoods(neighborhoods *Neighborhoods) error

Jump to

Keyboard shortcuts

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