middleware

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2017 License: MPL-2.0 Imports: 1 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL