Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 授权事件预处理器 AuthEventPreProcessors = map[AuthEventKind]PreProcessor{ AuthEventKindComponentVerifyTicket: newComponentVerifyTicketEventProcessor(), AuthEventKindAuthorized: newAuthorizedEventProcessor(), AuthEventKindUnauthorized: newUnauthorizedEventProcessor(), AuthEventKindUpdateAuthorized: newAuthorizedEventProcessor(), } AuthEventHandlers = map[AuthEventKind]AuthEventHandler{} )
Functions ¶
func RegisterAppEventHandler ¶
func RegisterAppEventHandler(kind AppEventKind, handler AppEventHandler)
RegisterAppEventHandler 注册代运营APP事件处理Handler
func RegisterAuthEventHandler ¶
func RegisterAuthEventHandler(kind AuthEventKind, handler AuthEventHandler)
RegisterAuthEventHandler 注册授权事件处理Handler
Types ¶
type AppEventHandler ¶
type AppEventHandler func() error
type AppEventKind ¶
type AppEventKind string
type AuthEventHandler ¶
type AuthEventImpl ¶ added in v0.2.4
type AuthEventImpl struct {
// contains filtered or unexported fields
}
func (AuthEventImpl) Handle ¶ added in v0.2.4
func (impl AuthEventImpl) Handle() error
type AuthEventKind ¶
type AuthEventKind string
const ( AuthEventKindComponentVerifyTicket AuthEventKind = "component_verify_ticket" // 校验组件校验凭证 AuthEventKindAuthorized AuthEventKind = "authorized" // 授权 AuthEventKindUpdateAuthorized AuthEventKind = "updateauthorized" // 更新授权 )
type PreProcessor ¶
PreProcessor 预处理器,对消息进行预处理
Click to show internal directories.
Click to hide internal directories.