user

package
v1.7.2-release Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const USER_PREFIX string = "bifrost_UserList_"

Variables

This section is empty.

Functions

func AddFailedIp

func AddFailedIp(ip string)

func AddRefuseIp

func AddRefuseIp(ip string)

func AddUser

func AddUser(Name, Password, GroupName string, Host string) error

func CheckRefuseIp

func CheckRefuseIp(ip string) bool

func CheckUserHost

func CheckUserHost(IP, Host string) (err error)

func CheckUserHost0

func CheckUserHost0(ipArr []string, Host string) bool

func DelFailedIp

func DelFailedIp(ip string)

func DelRefuseIp

func DelRefuseIp(ip string)

func DelRefuseIpByTimeOut

func DelRefuseIpByTimeOut()

func DelUser

func DelUser(Name string) error

func GetLastLoginLog

func GetLastLoginLog() (logInfo string, err error)

func GetRefuseIpMap

func GetRefuseIpMap() map[string]string

func InitUser

func InitUser()

func RecoveryUser

func RecoveryUser(content *json.RawMessage)

func UpdateUser

func UpdateUser(Name, Password, GroupName string, Host string) error

Types

type UserGroupType

type UserGroupType string

type UserInfo

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

func CheckUser

func CheckUser(Name, Password string) (userInfo *UserInfo, err error)

func CheckUserWithIP

func CheckUserWithIP(Name, Password string, IP string) (userInfo *UserInfo, err error)

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