requests

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const RequestFailedCallbackKey key = 1
View Source
const RequestSuccessCallbackKey key = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type ReqSender

type ReqSender struct {
	RunningWorkers         int64
	TotalRequestsStarted   int64
	TotalRequestsCompleted int64
	TotalRequestsFailed    int64
	// contains filtered or unexported fields
}

func NewReqSender

func NewReqSender(ctx context.Context, client *http.Client, workerCount uint, clientName string) *ReqSender

func (*ReqSender) Send

func (rs *ReqSender) Send(req *http.Request)

type RequestFailedCallback

type RequestFailedCallback func(body []byte, statusCode int, err error)

type RequestSuccessCallback

type RequestSuccessCallback func([]byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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