Documentation ¶
Index ¶
- Constants
- type PoliceSubzones
- type PoliceSubzonesScraper
- func (s *PoliceSubzonesScraper) Configure(pool *pgxpool.Pool) (err error)
- func (s *PoliceSubzonesScraper) EnqueueJobs() ([]infra.Job, error)
- func (s *PoliceSubzonesScraper) HandleResponse(j infra.Job, resp *http.Response, httpErr error) (*infra.Job, error)
- func (s *PoliceSubzonesScraper) MakeRequest(j infra.Job) (*http.Request, error)
- type Repo
Constants ¶
View Source
const ( ScraperName = "POLICE-SUBZONES" PoliceSubzonesURL = "https://opendata.arcgis.com/datasets/efd6f24283d04f38be5c0e306d1c1586_0.geojson" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoliceSubzones ¶
type PoliceSubzones struct {
Features *geojson.FeatureCollection
}
func ParsePoliceSubzones ¶
func ParsePoliceSubzones(encoded []byte) (*PoliceSubzones, error)
type PoliceSubzonesScraper ¶
type PoliceSubzonesScraper struct {
// contains filtered or unexported fields
}
func NewScraper ¶
func NewScraper() *PoliceSubzonesScraper
func (*PoliceSubzonesScraper) Configure ¶
func (s *PoliceSubzonesScraper) Configure(pool *pgxpool.Pool) (err error)
func (*PoliceSubzonesScraper) EnqueueJobs ¶
func (s *PoliceSubzonesScraper) EnqueueJobs() ([]infra.Job, error)
func (*PoliceSubzonesScraper) HandleResponse ¶
func (*PoliceSubzonesScraper) MakeRequest ¶
Click to show internal directories.
Click to hide internal directories.