models

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserSelectTest string
View Source
var UsersTest []models.User = []models.User{
	{
		Username: "admin",
		IsAdmin:  1,
	},
	{
		Username: "sugriwa",
	},
	{
		Username: "subali",
	},
	{
		Username: "ockibagusp",
	},
}

* Users Test

Functions

func GetAuthSession

func GetAuthSession() (session_gorilla *sessions.Session, err error)

func SetAuthSession

func SetAuthSession(user *models.User)

Types

This section is empty.

Jump to

Keyboard shortcuts

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