cliauth

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyLogin        = errors.New("login is empty")
	ErrPasswordsNotEqual = errors.New("passwords are not equal")
	ErrBadCredentials    = errors.New("bad credentials")
	ErrUserNotFound      = errors.New("user not found")
	ErrUserAlreadyExists = errors.New("user already exists")
	ErrNoUsers           = errors.New("no users registered")
)

Functions

func NewAuthenticator

func NewAuthenticator() *authenticator

func NewUsersStorageImpl

func NewUsersStorageImpl() *usersStorageImpl

Types

type User

type User struct {
	Login    string
	Password string
}

Jump to

Keyboard shortcuts

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