validator

package
v0.0.0-...-009bde4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct{}

func (*Validator) Analyze

func (v *Validator) Analyze(responses []*http.Response) (successful int)

Checks if request was successful, if so, increments the success count which will be returned

func (*Validator) Send

func (v *Validator) Send(requests []http.Request) (responses []*http.Response, err error)

Sends given requests, collects responses and returns them If an error occurs, the function will return the error immediately without continuing

Jump to

Keyboard shortcuts

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