Documentation ¶
Index ¶
- Constants
- type NeighborhoodScraper
- func (s *NeighborhoodScraper) Configure(pool *pgxpool.Pool) (err error)
- func (s *NeighborhoodScraper) EnqueueJobs() ([]infra.Job, error)
- func (s *NeighborhoodScraper) HandleResponse(j infra.Job, resp *http.Response, httpErr error) (*infra.Job, error)
- func (s *NeighborhoodScraper) MakeRequest(j infra.Job) (*http.Request, error)
- type Neighborhoods
- type Repo
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 (*NeighborhoodScraper) MakeRequest ¶
type Neighborhoods ¶
type Neighborhoods struct {
Features *geojson.FeatureCollection
}
func ParseNeighborhoods ¶
func ParseNeighborhoods(encoded []byte) (*Neighborhoods, error)
Click to show internal directories.
Click to hide internal directories.