Documentation ¶
Overview ¶
* Copyright (c) 2016 Yanko Bolanos * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. *
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiKeyMiddleware ¶
type ApiKeyMiddleware struct {
// contains filtered or unexported fields
}
func NewApiKeyMiddleware ¶
func NewApiKeyMiddleware(apiKeys []string) *ApiKeyMiddleware
func (*ApiKeyMiddleware) ServeHTTP ¶
func (a *ApiKeyMiddleware) ServeHTTP(rw http.ResponseWriter, req *http.Request, next http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.