Documentation
¶
Index ¶
- Constants
- func AddFailedIp(ip string)
- func AddRefuseIp(ip string)
- func AddUser(Name, Password, GroupName string, Host string) error
- func CheckRefuseIp(ip string) bool
- func CheckUserHost(IP, Host string) (err error)
- func CheckUserHost0(ipArr []string, Host string) bool
- func DelFailedIp(ip string)
- func DelRefuseIp(ip string)
- func DelRefuseIpByTimeOut()
- func DelUser(Name string) error
- func GetLastLoginLog() (logInfo string, err error)
- func GetRefuseIpMap() map[string]string
- func InitUser()
- func RecoveryUser(content *json.RawMessage)
- func UpdateUser(Name, Password, GroupName string, Host string) error
- type UserGroupType
- type UserInfo
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 CheckRefuseIp ¶
func CheckUserHost ¶
func CheckUserHost0 ¶
func DelFailedIp ¶
func DelFailedIp(ip string)
func DelRefuseIp ¶
func DelRefuseIp(ip string)
func DelRefuseIpByTimeOut ¶
func DelRefuseIpByTimeOut()
func GetLastLoginLog ¶
func GetRefuseIpMap ¶
func RecoveryUser ¶
func RecoveryUser(content *json.RawMessage)
func UpdateUser ¶
Types ¶
type UserGroupType ¶
type UserGroupType string
type UserInfo ¶
type UserInfo struct {
Name string
Password string
Group string
Host string
AddTime int64
UpdateTime int64
}
func CheckUserWithIP ¶
func GetUserInfo ¶
func GetUserList ¶
func GetUserList() []UserInfo
Click to show internal directories.
Click to hide internal directories.