Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MissingAPIKey = errors.New("missing API key") InvalidAPIKey = errors.New("invalid API key") InvalidEndpointValues = errors.New("invalid endpoint values") EndpointExists = errors.New("endpoint already exists") EndpointMissing = errors.New("endpoint doesnt exist") BucketExists = errors.New("bucket already exists") )
@title Throttlr API @version 0.0.1 @description This is the API for Throttlr, a rate limiting service. @BasePath /v1 @securityDefinitions.apikey ApiKeyAuth @in query @name key
View Source
var AuthError = errors.New("failed to authenticate user req")
Functions ¶
func HandleAuth ¶
Types ¶
type HandlerErrorFunc ¶
type HandlerErrorFunc func(http.ResponseWriter, *http.Request) *httpError
Click to show internal directories.
Click to hide internal directories.