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