Versions in this module Expand all Collapse all v0 v0.15.0 May 19, 2017 Changes in this version + const MetricPushinteral + const RequestTimeout + const TestName v0.14.0 May 10, 2017 Changes in this version + const TIMEOUT + var ErrNotAuthenticated = errors.New("Failed to authenticate with Load Impact cloud") + var ErrNotAuthorized = errors.New("Not allowed to upload result to Load Impact cloud") + var ErrNotUnknown = errors.New("An error occurred talking to Load Impact cloud") + type Client struct + func NewClient(token, host, version string) *Client + func (c *Client) CreateTestRun(testRun *TestRun) (*CreateTestRunResponse, error) + func (c *Client) Do(req *http.Request, v interface{}) error + func (c *Client) NewRequest(method, url string, data interface{}) (*http.Request, error) + func (c *Client) PushMetric(referenceID string, samples []*sample) error + func (c *Client) TestFinished(referenceID string, thresholds ThresholdResult, tained bool) error + type Collector struct + func New(fname string, src *lib.SourceData, opts lib.Options, version string) (*Collector, error) + func (c *Collector) Collect(samples []stats.Sample) + func (c *Collector) Init() + func (c *Collector) Run(ctx context.Context) + func (c *Collector) String() string + type CreateTestRunResponse struct + ReferenceID string + type ErrorResponse struct + Code int + Message string + Response *http.Response + func (e *ErrorResponse) Error() string + type TestRun struct + Duration int64 + Name string + ProjectID int + Thresholds map[string][]string + type ThresholdResult map[string]map[string]bool