userenv

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Login

type Login struct {
	Username   string `json:"username"`
	Password   string `json:"password"`
	RememberMe bool   `json:"rememberMe"`
}

type User

type User struct {
	Group    []string
	Username string
	Error    error
	Context  *gin.Context
}

User Object.

func New

func New(c *gin.Context) *User

New - package constructor

func (*User) HasAdminRight

func (o *User) HasAdminRight(code string) (err error)

HasAdminRight matches a product code to roles associated with a user.

Jump to

Keyboard shortcuts

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