aaa

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 15 Imported by: 13

Documentation

Index

Constants

View Source
const (
	RSA    = "rsa"
	SIGN   = "sign"
	VERIFY = "verify"
)
View Source
const (
	SEND    = "send"
	SUBJECT = "subject"
	CONTENT = "content"
)
View Source
const (
	INVITE = "invite"
	ACCEPT = "accept"
)
View Source
const (
	ROOT = "root"
	TECH = "tech"
	VOID = "void"
)
View Source
const (
	WHITE = "white"
	BLACK = "black"
	RIGHT = "right"
)
View Source
const (
	UA = "ua"
	IP = "ip"
)
View Source
const (
	CHECK  = "check"
	LOGIN  = "login"
	LOGOUT = "logout"
)
View Source
const (
	BACKGROUND = "background"
	AVATAR     = "avatar"
	GENDER     = "gender"
	MOBILE     = "mobile"

	CITY     = "city"
	COUNTRY  = "country"
	PROVINCE = "province"
	LANGUAGE = "language"
)
View Source
const (
	USERNICK = "usernick"
	USERNAME = "username"
	PASSWORD = "password"
	USERROLE = "userrole"
	USERZONE = "userzone"

	USER_CREATE = "user.create"
)
View Source
const AAA = "aaa"
View Source
const EMAIL = "email"
View Source
const OFFER = "offer"
View Source
const ROLE = "role"
View Source
const SESS = "sess"
View Source
const (
	TOKEN = "token"
)
View Source
const TOTP = "totp"
View Source
const USER = "user"

Variables

View Source
var Index = &ice.Context{Name: AAA, Help: "认证模块", Commands: ice.Commands{
	ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
		ice.Info.Load(m).Cmd(ROLE, ice.CTX_INIT).Cmd(ROLE, mdb.CREATE, TECH, VOID)
	}},
}}

Functions

func Black added in v1.4.4

func Black(m *ice.Message, key ...string)
func Right(m *ice.Message, key ...ice.Any) bool

func RoleAction added in v1.4.4

func RoleAction(key ...string) ice.Actions

func SessAuth added in v1.4.4

func SessAuth(m *ice.Message, value ice.Any, arg ...string) *ice.Message

func SessCheck

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

func SessCreate

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

func SessLogout added in v1.4.4

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

func TOTP_GET

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

func UserInfo added in v1.2.9

func UserInfo(m *ice.Message, name ice.Any, key, meta string) (value string)

func UserNick

func UserNick(m *ice.Message, username ice.Any) (nick string)

func UserRole

func UserRole(m *ice.Message, username ice.Any) (role string)

func UserRoot

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

func UserZone

func UserZone(m *ice.Message, username ice.Any) (zone string)

func White added in v1.4.4

func White(m *ice.Message, key ...string)

func WhiteAction added in v1.4.4

func WhiteAction(key ...string) ice.Actions

Types

This section is empty.

Jump to

Keyboard shortcuts

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