Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidArgumentsNumber is an error when the number of arguments are invalid ErrInvalidArgumentsNumber = errors.New("invalid number of arguments") // ErrInvalidUrl is an error when the format of the url is invalid ErrInvalidUrl = errors.New("invalid url format") )
Functions ¶
func ParseAttempts ¶
Tries to parse maxAttempts number. If it wasn't possible, returns default attempts
Types ¶
type CallResponse ¶
type CallResponse struct {
// contains filtered or unexported fields
}
URL calls response
type ConcurrentCall ¶
type ConcurrentCall struct { URL *url.URL // The endpoint to be tested Attempts int // number of Attempts ConcurrentAttempts int // number of concurrent Attempts }
A ConcurrentCall represents the very basic structure to start calling some URL out. It carries all data needed to call-it operate on.
func BuildCall ¶
func BuildCall(args []string, maxAttempts, maxConcurrentAttempts int) (call ConcurrentCall, err error)
Parses all given arguments and transform them into a ConcurrentCall
func (*ConcurrentCall) MakeIt ¶
func (call *ConcurrentCall) MakeIt() (result Result)
Make a call and return its results
Click to show internal directories.
Click to hide internal directories.