Versions in this module Expand all Collapse all v0 v0.2.0 Mar 30, 2023 Changes in this version + var ErrCanceled = errors.New("canceled") + var ErrConnection = errors.New("connection error") + type Config struct + Concurrency int + GlobalTimeout time.Duration + Interval time.Duration + OnProgress func(Progress) + RequestTimeout time.Duration + Requests int + type Event struct + Name string + Time time.Duration + type Progress struct + Done bool + DoneCount int + Elapsed time.Duration + Error error + MaxCount int + Timeout time.Duration + func (s Progress) JSON() ([]byte, error) + func (s Progress) Percent() int + func (s Progress) Status() Status + type Record struct + Bytes int + Code int + Error string + Events []Event + Time time.Duration + type Recorder struct + func New(cfg Config) *Recorder + func (r *Recorder) Progress() Progress + func (r *Recorder) Record(ctx context.Context, req *http.Request) ([]Record, error) + type Status string + const StatusCanceled + const StatusDone + const StatusRunning + const StatusTimeout