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