package
0.0.0-20200328181425-5607d930fa3a
Repository: https://github.com/humans-net/mapbox-sdk-go.git
Documentation: pkg.go.dev

# Functions

AccessToken sets access_token get param.
GeocodeEndpoint sets geocode endpoint.
HttpClient allows to change default fast http client.
Log used to debug traces and to log errors.
No description provided by the author
NewGeocoderMock returns a mock for Geocoder.
NewLoggerMock returns a mock for Logger.
RequestLogger sets the way testLogger could be extracted from request context.
RootAPI allows to change root api address.

# Structs

No description provided by the author
FastHttpGeocoder is a fasthttp Geocoder implementation.
No description provided by the author
No description provided by the author
GeocodeResponse.
GeocoderMock implements Geocoder.
GeocoderMockForwardGeocodeExpectation specifies expectation struct of the Geocoder.ForwardGeocode.
GeocoderMockForwardGeocodeParams contains parameters of the Geocoder.ForwardGeocode.
GeocoderMockForwardGeocodeResults contains results of the Geocoder.ForwardGeocode.
GeocoderMockReverseGeocodeExpectation specifies expectation struct of the Geocoder.ReverseGeocode.
GeocoderMockReverseGeocodeParams contains parameters of the Geocoder.ReverseGeocode.
GeocoderMockReverseGeocodeResults contains results of the Geocoder.ReverseGeocode.
No description provided by the author
No description provided by the author
LoggerMock implements Logger.
LoggerMockDebugfExpectation specifies expectation struct of the Logger.Debugf.
LoggerMockDebugfParams contains parameters of the Logger.Debugf.
LoggerMockErrorfExpectation specifies expectation struct of the Logger.Errorf.
LoggerMockErrorfParams contains parameters of the Logger.Errorf.
No description provided by the author
RateLimit wraps mapbox API rate limit resp headers.
No description provided by the author

# Interfaces

Client covers all Mabpox API.
No description provided by the author
Geocoder encapsulates forward and reverse geocode calls.
No description provided by the author

# Type aliases

Option allows gradually modify config.