limiter

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 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 Limiter

type Limiter struct {
	// contains filtered or unexported fields
}

func New

func New(maxParallel int64, next http.RoundTripper, namespace, subsystem, application string) *Limiter

func (*Limiter) Collect

func (m *Limiter) Collect(ch chan<- prometheus.Metric)

func (*Limiter) Describe

func (m *Limiter) Describe(ch chan<- *prometheus.Desc)

func (*Limiter) RoundTrip

func (l *Limiter) RoundTrip(request *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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