Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
Auth provides the middleware to authenticate against the registered API key.
func (*Auth) ServeHTTP ¶
func (a *Auth) ServeHTTP(w http.ResponseWriter, r *http.Request, ps httprouter.Params, next http.HandlerFunc)
ServeHTTP deals with authenticating against the registered API key. The API key is expected to be in the query string where one is provided.
Click to show internal directories.
Click to hide internal directories.