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