auth

package
v0.0.0-...-5efa5bd Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2017 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Registry = &authRegistry{reg: make(map[string]Auth)}

Registry is the authentication methods registry

Functions

This section is empty.

Types

type Auth

type Auth interface {
	// Type returns the type (name) if the authentication method
	Type() string
	// Login performs the login based on username and password
	Login(user, passowrd string) error
	// Init is for the authentication methods initialization.
	// Init is called once at API initialization
	Init() error
}

Auth is the authentication interface

Jump to

Keyboard shortcuts

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