usermanager

package
v0.0.0-...-72e33f6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorityList

func GetAuthorityList(ctx context.Context, c dahuarpc.Conn) ([]string, error)

Types

type GroupInfo

type GroupInfo struct {
	AuthorityList []string `json:"AuthorityList"`
	ID            int      `json:"Id"`
	Memo          string   `json:"Memo"`
	Name          string   `json:"Name"`
}

func GetGroupInfoAll

func GetGroupInfoAll(ctx context.Context, c dahuarpc.Conn) ([]GroupInfo, error)

type User

type User struct {
	ClientAddress string             `json:"ClientAddress"`
	ClientType    string             `json:"ClientType"`
	Group         string             `json:"Group"`
	ID            int                `json:"Id"`
	LoginTime     dahuarpc.Timestamp `json:"LoginTime"`
	Name          string             `json:"Name"`
}

func GetActiveUserInfoAll

func GetActiveUserInfoAll(ctx context.Context, c dahuarpc.Conn) ([]User, error)

type UserInfo

type UserInfo struct {
	Anonymous            bool     `json:"Anonymous"`
	AuthorityList        []string `json:"AuthorityList"`
	Group                string   `json:"Group"`
	ID                   int      `json:"Id"`
	Memo                 string   `json:"Memo"`
	Name                 string   `json:"Name"`
	Password             string   `json:"Password"`
	PasswordModifiedTime string   `json:"PasswordModifiedTime"`
	PwdScore             int      `json:"PwdScore"`
	Reserved             bool     `json:"Reserved"`
	Sharable             bool     `json:"Sharable"`
}

func GetUserInfoAll

func GetUserInfoAll(ctx context.Context, c dahuarpc.Conn) ([]UserInfo, error)

Jump to

Keyboard shortcuts

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