aaa

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 16 Imported by: 13

Documentation

Index

Constants

View Source
const (
	RSA    = "rsa"
	SIGN   = "sign"
	VERIFY = "verify"
	BASE64 = "base64"
)
View Source
const (
	ADMIN   = "admin"
	SEND    = "send"
	DATE    = "date"
	FROM    = "from"
	TO      = "to"
	CC      = "cc"
	SUBJECT = "subject"
	CONTENT = "content"
)
View Source
const (
	INVITE       = "invite"
	ACCEPT       = "accept"
	SUBJECT_HTML = "subject.html"
	CONTENT_HTML = "content.html"

	OFFER_CREATE = "offer.create"
	OFFER_ACCEPT = "offer.accept"
)
View Source
const (
	ROOT = "root"
	TECH = "tech"
	VOID = "void"
)
View Source
const (
	WHITE = "white"
	BLACK = "black"
	RIGHT = "right"
)
View Source
const (
	AUTH    = "auth"
	ACCESS  = "access"
	PUBLIC  = "public"
	PRIVATE = "private"
	CONFIRM = "confirm"
)
View Source
const (
	IP = "ip"
	UA = "ua"
)
View Source
const (
	CHECK  = "check"
	LOGIN  = "login"
	LOGOUT = "logout"
)
View Source
const (
	BACKGROUND = "background"
	AVATAR_URL = "avatar_url"
	AVATAR     = "avatar"
	GENDER     = "gender"
	MOBILE     = "mobile"
	SECRET     = "secret"
	THEME      = "theme"

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

	USER_CREATE = "user.create"
	USER_REMOVE = "user.remove"
)
View Source
const AAA = "aaa"
View Source
const APPLY = "apply"
View Source
const EMAIL = "email"
View Source
const OFFER = "offer"
View Source
const ROLE = "role"
View Source
const SESS = "sess"
View Source
const TOTP = "totp"
View Source
const USER = "user"

Variables

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

Functions

func Black added in v1.4.4

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

func IsTechOrRoot added in v1.8.5

func IsTechOrRoot(m *ice.Message) bool

func OfferAction added in v1.8.8

func OfferAction() ice.Actions
func Right(m *ice.Message, key ...ice.Any) bool

func SendEmail added in v1.8.4

func SendEmail(m *ice.Message, from, to, cc string, arg ...string)

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 SessValid added in v1.8.3

func SessValid(m *ice.Message) string

func TOTP_GET

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

func UserEmail added in v1.6.1

func UserEmail(m *ice.Message, username ice.Any) (nick 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(role string, key ...string) ice.Actions

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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