aaa

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2022 License: MIT Imports: 11 Imported by: 13

Documentation

Index

Constants

View Source
const (
	ROOT = "root"
	TECH = "tech"
	VOID = "void"
)
View Source
const (
	BLACK = "black"
	WHITE = "white"
	RIGHT = "right"
)
View Source
const (
	IP = "ip"
	UA = "ua"
)
View Source
const (
	GRANT  = "grant"
	LOGIN  = "login"
	LOGOUT = "logout"
)
View Source
const (
	SECRET = "secret"
	PERIOD = "period"
	NUMBER = "number"
)
View Source
const (
	BACKGROUND = "background"

	AVATAR = "avatar"
	GENDER = "gender"
	MOBILE = "mobile"
	EMAIL  = "email"

	CITY     = "city"
	COUNTRY  = "country"
	LANGUAGE = "language"
	PROVINCE = "province"
)
View Source
const (
	USERROLE = "userrole"
	USERNAME = "username"
	PASSWORD = "password"
	USERNICK = "usernick"
	USERZONE = "userzone"
)
View Source
const AAA = "aaa"
View Source
const (
	INVITE = "invite"
)
View Source
const ROLE = "role"
View Source
const SESS = "sess"
View Source
const (
	SESS_CREATE = "sess.create"
)
View Source
const TOTP = "totp"
View Source
const USER = "user"
View Source
const (
	USER_CREATE = "user.create"
)

Variables

View Source
var Index = &ice.Context{Name: AAA, Help: "认证模块"}

Functions

func RoleRight

func RoleRight(m *ice.Message, userrole string, keys ...string) bool

func SessCheck

func SessCheck(m *ice.Message, sessid string) bool

func SessCreate

func SessCreate(m *ice.Message, username string) string

func TOTP_GET

func TOTP_GET(key string, num int, per int64) string

func UserLogin

func UserLogin(m *ice.Message, username, password string) bool

func UserNick

func UserNick(m *ice.Message, username interface{}) (nick string)

func UserRole

func UserRole(m *ice.Message, username interface{}) (role string)

func UserRoot

func UserRoot(m *ice.Message, arg ...string)

func UserZone

func UserZone(m *ice.Message, username interface{}) (zone string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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