reporter

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CSV_HEADERS = "status_code,time,path"

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVReporter added in v0.0.3

type CSVReporter struct{}

func (CSVReporter) Report added in v0.0.3

func (r CSVReporter) Report(responses []swarm.HTTPResponse) (string, error)

type JSONReporter added in v0.0.3

type JSONReporter struct{}

func (JSONReporter) Report added in v0.0.3

func (r JSONReporter) Report(responses []swarm.HTTPResponse) (string, error)

type Report added in v0.0.3

type Report struct {
	Output    string
	Reporter  Reporter
	Responses []swarm.HTTPResponse
	Type      string
}

func NewReporter

func NewReporter(reportType, output string, responses []swarm.HTTPResponse) Report

func (Report) Report added in v0.0.3

func (r Report) Report() (string, error)

type Reporter

type Reporter interface {
	Report([]swarm.HTTPResponse) (string, error)
}

type TXTReporter added in v0.0.3

type TXTReporter struct {
	Responses []swarm.HTTPResponse
}

func (TXTReporter) Report added in v0.0.3

func (r TXTReporter) Report(responses []swarm.HTTPResponse) (string, error)

Jump to

Keyboard shortcuts

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