bikelanes

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  = "BIKE-LANES"
	BikeLanesURL = "https://data.nola.gov/api/geospatial/8npz-j6vy?method=export&format=GeoJSON"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BikeLanes

type BikeLanes struct {
	Features *geojson.FeatureCollection
}

func ParseBikeLanes

func ParseBikeLanes(encoded []byte) (*BikeLanes, error)

type BikeLanesScraper

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

func NewScraper

func NewScraper() *BikeLanesScraper

func (*BikeLanesScraper) Configure

func (s *BikeLanesScraper) Configure(pool *pgxpool.Pool) (err error)

func (*BikeLanesScraper) EnqueueJobs

func (s *BikeLanesScraper) EnqueueJobs() ([]infra.Job, error)

func (*BikeLanesScraper) HandleResponse

func (s *BikeLanesScraper) HandleResponse(j infra.Job, resp *http.Response, httpErr error) (*infra.Job, error)

func (*BikeLanesScraper) MakeRequest

func (s *BikeLanesScraper) 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) StoreBikeLanes

func (r *Repo) StoreBikeLanes(bikelanes *BikeLanes) error

Jump to

Keyboard shortcuts

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