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 ¶
NewAdapter creates new adapter instance.
func (*Adapter) GetIncidents ¶
func (a *Adapter) GetIncidents(ctx context.Context, req bikerental.BikeIncidentsRequest) (*bikerental.BikeIncidentsInfo, error)
GetIncidents return number of bike incidents in a location. Maximum returned value will be `maxIncidents`.
Click to show internal directories.
Click to hide internal directories.