Versions in this module Expand all Collapse all v0 v0.9.0-pre1 Aug 31, 2017 v0.8.0 Aug 17, 2016 Changes in this version + const ErrBadData + const ErrBadResponse + const ErrCanceled + const ErrExec + const ErrTimeout + type CancelableTransport interface + CancelRequest func(req *http.Request) + var DefaultTransport CancelableTransport = &http.Transport{ ... } + type Client interface + func New(cfg Config) (Client, error) + type Config struct + Address string + Transport CancelableTransport + type Error struct + Msg string + Type ErrorType + func (e *Error) Error() string + type ErrorType string + type QueryAPI interface + Query func(ctx context.Context, query string, ts time.Time) (model.Value, error) + QueryRange func(ctx context.Context, query string, r Range) (model.Value, error) + func NewQueryAPI(c Client) QueryAPI + type Range struct + End time.Time + Start time.Time + Step time.Duration