auth

package
v0.0.0-...-bece8e1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager = &Auth{
	ExpireTime: 10 * 60 * 1000,
}

Functions

This section is empty.

Types

type Auth

type Auth struct {
	HashedMasterPassword []byte
	ExpireTime           int64
}

func (*Auth) AuthFileExists

func (a *Auth) AuthFileExists() bool

func (*Auth) AuthIsExpired

func (a *Auth) AuthIsExpired() bool

func (*Auth) Authenticate

func (a *Auth) Authenticate() ([]byte, error)

func (*Auth) GetAuth

func (a *Auth) GetAuth() ([]byte, error)

func (*Auth) IsAuthed

func (a *Auth) IsAuthed() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳