Versions in this module Expand all Collapse all v0 v0.0.1 Jul 12, 2020 Changes in this version + type Client struct + BaseURL *url.URL + func New(endpoint string) (*Client, error) + func (c *Client) GenerateLoad(users int, hatchrate float64) (*SwarmResponse, error) + func (c *Client) Stats() (*StatsResponse, error) + func (c *Client) StopLoad() (*SwarmResponse, error) + func (c *Client) Swarm(rps float64, duration string) (*SwarmResponse, error) + type Error struct + Error string + Method string + Name string + Occurrences int + type Stat struct + AvgContentLength float64 + AvgResponseTime float64 + CurrentRps float64 + MaxResponseTime float64 + MedianResponseTime float64 + Method string + MinResponseTime float64 + Name string + NumFailures int + NumRequests int + type StatsResponse struct + CurrentResponseTimePercentile50 float64 + CurrentResponseTimePercentile95 float64 + Errors []Error + FailRatio float64 + State string + Statistics []Stat + TotalRps float64 + UserCount int + type SwarmResponse struct + Message string + Success bool