model

package
v0.0.0-...-2062ed6 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Users []User

Functions

func Encrypt

func Encrypt(pw string) string

Types

type User

type User struct {
	Login    string
	Password string
	Access   []string
}

func NewUser

func NewUser(l, pw string, access ...string) *User

func (*User) Authorize

func (u *User) Authorize(target string) bool

func (*User) String

func (u *User) String() string

func (*User) ValidatePw

func (u *User) ValidatePw(pw string) bool

Jump to

Keyboard shortcuts

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