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