repository

package
v0.0.0-...-bf7cd7d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRepoCtx

type AuthRepoCtx struct {
	Common  *common.Common
	JWT     *jwt.JWT
	Storage *storage.Storage
}

func NewAuthRepo

func NewAuthRepo(c *common.Common, sto *storage.Storage) *AuthRepoCtx

func (*AuthRepoCtx) Check

func (*AuthRepoCtx) CheckPassword

func (a *AuthRepoCtx) CheckPassword(encPW, pw string) bool

func (*AuthRepoCtx) Create

func (*AuthRepoCtx) EncPassword

func (a *AuthRepoCtx) EncPassword(pw string) (string, error)

func (*AuthRepoCtx) Login

Jump to

Keyboard shortcuts

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