Versions in this module Expand all Collapse all v0 v0.2.7 Aug 24, 2021 Changes in this version + type Report struct + func NewReport(ctx context.Context, c, n int, duration time.Duration, ...) *Report + func (r *Report) Cancel() + func (r *Report) Init() + func (r *Report) Process(work chan struct{}) + func (r *Report) WaitAll() + type ReportData struct + Number int + SendNum int + type SubTasker interface + Cancel func() + Init func() + Process func(chan struct{}) + WaitAll func() + type Task struct + Concurrent int + Duration time.Duration + Number int + Rate int + func (t *Task) Run(sub SubTasker)