password

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrPasswordsMismatch = errors.New("passwords do not match")
	ErrNotRegistered     = errors.New("have not registered yet")
	ErrWrongPassword     = errors.New("wrong password")
)

Functions

func NewManager

func NewManager(kvStore keyvalue.Store) *manager

Types

type Manager

type Manager interface {
	IsRegistered() (bool, error)
	Register(pwd string, rePwd string) error
	Login(pwd string) error
}

Jump to

Keyboard shortcuts

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