Documentation
¶
Index ¶
- Variables
- func Add(username string, password string, disableotp, randompass bool)
- func Delete(username string)
- func Disable(username string)
- func DisconnectDevice(name, dev string) (total, effect int)
- func Enable(username string)
- func GetDefaultConfig() map[string]string
- func GetFinalConfig(name string) map[string]string
- func GetUserConfig(name string) map[string]string
- func HashPassword(pass string) string
- func Ifconfig(username, dev string, configs ...string)
- func List(usernames ...string)
- func MatchPassword(pass, target string) bool
- func Reconnect(username string)
- func Reset(username string, password string, disableotp, randompass bool)
- func Set(def bool, username string, configs ...string)
- func Show(username string)
- func StdPassword(password string) (code string, pass string)
- func StdUsername(username string) (name string, device string)
- func Verify(username string, password string)
Constants ¶
This section is empty.
Variables ¶
View Source
var RSupportConfig map[string]string
View Source
var SupportConfig []string = []string{
"allow.net",
"allow.domain",
"allow.city",
"ipset.assign",
"ipset.access",
"otp.sameip",
"otp.samecity",
}
Functions ¶
func DisconnectDevice ¶
func GetDefaultConfig ¶
func GetFinalConfig ¶
func GetUserConfig ¶
func HashPassword ¶
func MatchPassword ¶
func StdPassword ¶
func StdUsername ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.