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
Click to show internal directories.
Click to hide internal directories.