users

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0, BSD-2-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All() map[string]*UserData

func GetPermissionMap

func GetPermissionMap(name string) map[string]bool

func InitUsers

func InitUsers(userList map[string]*UserData)

Types

type UserData

type UserData struct {
	Username    string
	Password    string
	Permissions []string
}

func GetUserByName

func GetUserByName(name string) *UserData

Jump to

Keyboard shortcuts

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