basicauth

package
v3.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(users map[string]string) iris.HandlerFunc

Default takes one parameter, the users returns a HandlerFunc use: iris.UseFunc(Default(...)), iris.Get(...,Default(...),...)

func DefaultHandler

func DefaultHandler(users map[string]string) iris.Handler

DefaultHandler takes one parameter, the users returns a Handler use: iris.Use(DefaultHandler(...)), iris.Get(...,iris.HandlerFunc(Default(...)),...)

func New

New takes one parameter, the config.BasicAuth returns a HandlerFunc use: iris.UseFunc(New(...)), iris.Get(...,New(...),...)

func NewHandler

func NewHandler(c config.BasicAuth) iris.Handler

NewHandler takes one parameter, the config.BasicAuth returns a Handler use: iris.Use(NewHandler(...)), iris.Get(...,iris.HandlerFunc(NewHandler(...)),...)

Types

This section is empty.

Jump to

Keyboard shortcuts

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