MCPcopy
hub / github.com/vulcand/vulcand / RateExtractor

Interface RateExtractor

plugin/ratelimit/tokenlimiter.go:52–54  ·  view source on GitHub ↗

RateExtractor rate extractor

Source from the content-addressed store, hash-verified

50
51// RateExtractor rate extractor
52type RateExtractor interface {
53 Extract(r *http.Request) (*RateSet, error)
54}
55
56// RateExtractorFunc rate extractor function type
57type RateExtractorFunc func(r *http.Request) (*RateSet, error)

Callers 3

ServeHTTPMethod · 0.65
resolveRatesMethod · 0.65
ServeHTTPMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected