Versions in this module Expand all Collapse all v1 v1.1.1 Oct 24, 2020 v1.1.0 Oct 24, 2020 v1.0.0 Sep 30, 2019 Changes in this version + func CheckResponse(r *http.Response) error + type Client struct + APIKey string + BaseURL *url.URL + Prices PricesService + Station StationService + UserAgent string + func NewClient(apiKey string, httpClient *http.Client) *Client + func (c *Client) Do(req *http.Request, v interface{}) (*Response, error) + func (c *Client) NewRequest(method, urlStr string, query url.Values, body interface{}) (*http.Request, error) + type ErrorResponse struct + Message string + Ok bool + Response *http.Response + func (r *ErrorResponse) Error() string + type Price struct + Diesel interface{} + E10 interface{} + E5 interface{} + Status string + type PricesService interface + Get func(ids []string) (map[string]Price, *Response, error) + type PricesServiceOp struct + func (p *PricesServiceOp) Get(ids []string) (map[string]Price, *Response, error) + type Response struct + type Station struct + Brand string + Diesel interface{} + Dist float64 + E10 interface{} + E5 interface{} + HouseNumber string + Id string + IsOpen bool + Lat float64 + Lng float64 + Name string + OpeningTimes []openingTime + Overrides []string + Place string + PostCode int + State string + Street string + WholeDay bool + type StationService interface + Detail func(id string) (Station, *Response, error) + List func(lat float64, lng float64, rad int) ([]Station, *Response, error) + type StationServiceOp struct + func (s *StationServiceOp) Detail(id string) (Station, *Response, error) + func (s *StationServiceOp) List(lat float64, lng float64, rad int) ([]Station, *Response, error)