Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitUsageSubscriber ¶
func InitUsageSubscriber()
InitUsageSubscriber inits the api usage subscriber function
func RateProcess ¶
func RateProcess(ch chan models.RateRequest)
RateProcess process the rate update requests. If the rate exceeds the max limit, it will send message to block the api token. For reset type requests it resets the api current usage to 0
Types ¶
type App ¶
type App struct {
*revel.Controller
}
App is the main controller of the application
func (App) Reset ¶
Reset resets the usage of an api token
Source Files
¶
- app.go
- pubsub.go
Click to show internal directories.
Click to hide internal directories.