Versions in this module Expand all Collapse all v0 v0.5.0 Feb 19, 2026 Changes in this version + type ProcessOptionFn func(bp *Processor) + func WithBatchTimeout(timeout time.Duration) ProcessOptionFn + func WithClient(client *greq.Client) ProcessOptionFn + func WithContext(ctx context.Context) ProcessOptionFn + func WithMaxConcurrency(n int) ProcessOptionFn + type Processor struct + func NewProcessor(optFns ...ProcessOptionFn) *Processor + func (bp *Processor) Add(id, method, url string, body any, optFns ...greq.OptionFn) *Processor + func (bp *Processor) AddDelete(id, url string, optFns ...greq.OptionFn) *Processor + func (bp *Processor) AddGet(id, url string, optFns ...greq.OptionFn) *Processor + func (bp *Processor) AddPost(id, url string, body any, optFns ...greq.OptionFn) *Processor + func (bp *Processor) AddPut(id, url string, body any, optFns ...greq.OptionFn) *Processor + func (bp *Processor) AddRequest(req *Request) *Processor + func (bp *Processor) Client() *greq.Client + func (bp *Processor) Close() + func (bp *Processor) Context() context.Context + func (bp *Processor) ExecuteAll() Results + func (bp *Processor) ExecuteAny() *Result + func (bp *Processor) MaxConcurrency() int + func (bp *Processor) Timeout() time.Duration + type Request struct + Body any + ID string + Method string + Options []greq.OptionFn + URL string + type Result struct + Duration time.Duration + Error error + ID string + Request *Request + Response *greq.Response + func ExecuteAny(requests []*Request, optFns ...ProcessOptionFn) *Result + func GetAny(urls []string, optFns ...greq.OptionFn) *Result + type Results map[string]*Result + func ExecuteAll(requests []*Request, optFns ...ProcessOptionFn) Results + func GetAll(urls []string, optFns ...greq.OptionFn) Results + func PostAll(urls []string, bodies []any, optFns ...greq.OptionFn) Results