client

package
v0.0.0-...-ec42ef2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(debug bool)

RunTest for running the tests

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for running the test parallel

func NewClient

func NewClient(url string, timeout time.Duration) *Client

NewClient for getting new client

func (*Client) Start

func (c *Client) Start()

Start function indefinitely called the sendRequest() till the chan signal receives something

type Report

type Report struct {
	// contains filtered or unexported fields
}

Report for showing results

func NewReport

func NewReport(result Result) *Report

NewReport to initialize and get a new report

func (*Report) AddResults

func (r *Report) AddResults(results []Result)

AddResults for adding results to a report

type Result

type Result struct {
	// contains filtered or unexported fields
}

Result to store results for each run

func (*Result) String

func (s *Result) String() string

func (*Result) StringBits

func (s *Result) StringBits(bits bool) string

StringBits to format it in either bits format

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL