httplim

package
v0.0.0-...-caa8b03 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpWorker

type HttpWorker struct {
	Limiter *rate.Limiter
	// contains filtered or unexported fields
}

func NewHttpWorker

func NewHttpWorker(workers int, client *http.Client, limiter *rate.Limiter) *HttpWorker

func (*HttpWorker) Close

func (w *HttpWorker) Close()

func (*HttpWorker) Do

func (w *HttpWorker) Do(req *http.Request) (*http.Response, error)

func (*HttpWorker) Run

func (w *HttpWorker) Run()

Jump to

Keyboard shortcuts

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