package
0.0.0-20190327071030-c0e7709511de
Repository: https://github.com/shredx/golang-redis-rate-limiter.git
Documentation: pkg.go.dev

# Constants

ADD will add the current usage of an api with 1.
BLOCK request is to block the api token.
OK request indicates that the status of the token is ok and not blacklisted.
RESET will reset the the current api usage to 0.
STATUS request is to know the status of a token.

# Variables

BlockChannel is the name of the channel that should be used for blocking the api subscription key.
DB is the db client for the redis persistent storage.
RateChannel receives the rate updation requests.
ResetChannel receives the redis api usage reset channel.
ResetChannelName is the name of the reset channel.
UsageChannel receives the redis api usage channel.

# Structs

APIUsage represents the api usage of the key.
RateRequest is the request to update the rate.

# Type aliases

Type is the type of the request for rate limitng go routine.