user

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const USER_PREFIX string = "bifrost_UserList_"

Variables

This section is empty.

Functions

func AddUser

func AddUser(Name, Password, GroupName string) error

func DelUser

func DelUser(Name string) error

func InitUser

func InitUser()

func RecoveryUser

func RecoveryUser(content *json.RawMessage)

func UpdateUser

func UpdateUser(Name, Password, GroupName string) error

Types

type UserGroupType

type UserGroupType string

type UserInfo

type UserInfo struct {
	Name       string
	Password   string
	Group      string
	AddTime    int64
	UpdateTime int64
}

func GetUserInfo

func GetUserInfo(Name string) UserInfo

func GetUserList

func GetUserList() []UserInfo

Jump to

Keyboard shortcuts

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