Documentation
¶
Index ¶
- func TUI(ctx context.Context, rec Recorder) error
- type Option
- func Addr(s string) Option
- func BundlePath(p string) Option
- func Duration(d time.Duration) Option
- func Equals(b bool) Option
- func Fail(b bool) Option
- func Output(sink, fmt string) Option
- func Rate(s float64) Option
- func TLS(caCert, cert, key string, skip bool) Option
- func WithReport(rs ...ReportOption) Option
- type Recorder
- type Report
- type ReportOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Option ¶
type Option func(*rec)
func BundlePath ¶
func WithReport ¶
func WithReport(rs ...ReportOption) Option
type Recorder ¶
type Report ¶
type Report interface {
Output(context.Context, io.Writer, format) error
ToCSV(context.Context, io.Writer) error
ToJSON(context.Context, io.Writer) error
ToPretty(context.Context, io.Writer) error
Count(context.Context) int
fmt.Stringer
}
func ReportFromReader ¶
ReportFromReader reads JSON lines from a reader, and closes it when done if it is an io.ReadCloser (such as resp.Body).
type ReportOption ¶
type ReportOption func(*report)
func Grouped ¶
func Grouped(b bool) ReportOption
func Limit ¶
func Limit(n int) ReportOption
Click to show internal directories.
Click to hide internal directories.