package
0.6.3
Repository: https://github.com/shisa-platform/core.git
Documentation: pkg.go.dev

# Functions

FromString parses a rate limit string in the form of "<limit>/<duration>".
NewFakeProviderDefaultError returns an instance of FakeProvider with all hooks configured to call t.Error.
NewFakeProviderDefaultFatal returns an instance of FakeProvider with all hooks configured to call t.Fatal.
NewFakeProviderDefaultPanic returns an instance of FakeProvider with all hooks configured to panic.
NewProviderAllowInvocation creates a new instance of ProviderAllowInvocation.
NewProviderLimitInvocation creates a new instance of ProviderLimitInvocation.

# Structs

FakeProvider is a mock implementation of Provider for testing.
ProviderAllowInvocation represents a single call of FakeProvider.Allow.
ProviderCloseInvocation represents a single call of FakeProvider.Close.
ProviderLimitInvocation represents a single call of FakeProvider.Limit.
RateLimit encodes a maximum number of repititions allowed over a time interval.

# Interfaces

Provider is an interface providing a means to limiting requests based on actor/action/path parameters.
ProviderTestingT represents the methods of "testing".T used by charlatan Fakes.