auth

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: AGPL-3.0 Imports: 13 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 struct {
	// contains filtered or unexported fields
}

func Parse

func Parse(directory string) (*Auth, error)

func (*Auth) Create

func (a *Auth) Create(name string) (string, error)

func (*Auth) CreateWithPW

func (a *Auth) CreateWithPW(name, password string, strength int) (string, error)

func (*Auth) HotReload

func (a *Auth) HotReload() error

func (*Auth) Names

func (a *Auth) Names() []string

func (*Auth) Reload

func (a *Auth) Reload() (amount int, err error)

func (*Auth) Remove

func (a *Auth) Remove(name string) error

func (*Auth) Secure

func (a *Auth) Secure(handler echo.HandlerFunc) echo.HandlerFunc

type UserPW

type UserPW struct {
	Name string
	Pass string
}

Jump to

Keyboard shortcuts

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