models

package
v0.0.0-...-baf0b24 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateUsers

func UpdateUsers(data map[string]User) (map[string]User, error)

UpdateUsers saves/loads the Map of the user data to/from a File

Types

type Session

type Session struct {
	UserName     string
	LastActivity time.Time
}

Session Data

type User

type User struct {
	UserName string
	Password []byte
	First    string
	Last     string
	Role     string
}

User data

Jump to

Keyboard shortcuts

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