Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRedisClient ¶
InitRedisClient 初始化redis客户端
Types ¶
type UvpnModel ¶
type UvpnModel interface { // GenUserCcd 生成用户ccd文件 GenUserCcd(username string) (vip string, cidrs []string, err error) // AddUserPriv 为用户增加权限 AddUserPriv(username, realName string, newCidrs []string) (vip string, cidrs []string, err error) // AddAllUserPriv 为所有用户增加权限 AddAllUserPriv(newCidrs []string) (allCcdDetail []CcdDetail, err error) // DelUserCcd 删除用户ccd文件 DelUserCcd(username string) (err error) // GetUserPriv 获取用户权限信息 GetUserPriv(username string) (vip string, cidrs []string, err error) // CleanUpAllUserCcd 清理所有用户ccd文件 CleanUpAllUserCcd() (err error) }
func NewUvpnModel ¶
type UvpnPrivAttr ¶
UvpnPrivAttr 一个用户的uvpn权限包含的内容
Click to show internal directories.
Click to hide internal directories.