auth

package
v2.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	//Authenticate authenticates the given credentials and returns the User associated with the account if successful,
	//or nil if not. If an error occurs it is returned.
	Authenticate(username, password string) (user *User, err error)
}

Auth represents an authentication mechanism

type User

type User struct {
	Username    string
	DisplayName string
}

User represents an authenticated user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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