policesubzones

package
v0.0.0-...-268a1c9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 (s *PoliceSubzonesScraper) HandleResponse(j infra.Job, resp *http.Response, httpErr error) (*infra.Job, error)

func (*PoliceSubzonesScraper) MakeRequest

func (s *PoliceSubzonesScraper) MakeRequest(j infra.Job) (*http.Request, error)

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(conn *pgxpool.Pool) *Repo

func (*Repo) StorePoliceSubzones

func (r *Repo) StorePoliceSubzones(subzones *PoliceSubzones) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL