incidents

package
v0.0.0-...-a53416d Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter uses bikewise.org API for bike incidents data. See: https://www.bikewise.org/documentation/api_v2#!/incidents/GET_version_incidents_format_get_0

func NewAdapter

func NewAdapter(address string, timeout time.Duration, httpDoer http.Doer) (*Adapter, error)

NewAdapter creates new adapter instance.

func (*Adapter) GetIncidents

GetIncidents return number of bike incidents in a location. Maximum returned value will be `maxIncidents`.

Jump to

Keyboard shortcuts

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