Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct {
// contains filtered or unexported fields
}
Tracker keeps track of the used quota of API keys and updates it in batches in order to reduce database traffic
func NewTracker ¶
func NewTracker(repo apikey.Repository) *Tracker
NewTracker creates a new API key quota tracker
func (*Tracker) Accumulate ¶
Accumulate accumulates the used API quota of a specific API key by 1
Click to show internal directories.
Click to hide internal directories.