Documentation ¶
Index ¶
- Constants
- func GetEventType(infoType models.InfoType, changeType models.ChangeType) int
- type Guard
- func (guard *Guard) DecryptEvent(content string) (bufDecrypted []byte, err error)
- func (guard *Guard) GetMessage(request *http.Request) (ev models.IEvent, msg interface{}, err error)
- func (guard *Guard) Notify(request *http.Request, ...) (httpRS *http.Response, err error)
- func (guard *Guard) OverrideIsSafeMode()
- func (guard *Guard) OverrideResolve()
- func (guard *Guard) OverrideToCallbackType()
Constants ¶
View Source
const ( EVENT_SUITE_TICKET int = 52000 // "suite_ticket" EVENT_CREATE_AUTH int = 52100 // "create_auth" EVENT_CHANGE_AUTH int = 52101 // "change_auth" EVENT_CANCEL_AUTH int = 52102 // "cancel_auth" EVENT_CREATE_USER int = 52200 // "change_contact->create_user" EVENT_UPDATE_USER int = 52201 // "change_contact->update_user" EVENT_DELETE_USER int = 52202 // "change_contact->delete_user" EVENT_CREATE_PARTY int = 52210 // "change_contact->create_party" EVENT_UPDATE_PARTY int = 52211 // "change_contact->update_party" EVENT_DELETE_PARTY int = 52212 // "change_contact->delete_party" EVENT_UPDATE_TAG int = 52220 // "change_contact->update_tag" EVENT_SHARE_AGENT_CHANGE int = 52300 // "share_agent_change" EVENT_SHARE_CHAIN_CHANGE int = 52310 // "share_chain_change" EVENT_RESET_PERMANENT_CODE int = 52400 // "reset_permanent_code" EVENT_CORP_ARCH_AUTH int = 52600 // "corp_arch_auth" EVENT_APPROVE_SPECIAL_AUTH int = 52700 // "approve_special_auth" EVENT_CANCEL_SPECIAL_AUTH int = 52701 // "cancel_special_auth" )
Variables ¶
This section is empty.
Functions ¶
func GetEventType ¶ added in v3.2.0
func GetEventType(infoType models.InfoType, changeType models.ChangeType) int
Types ¶
type Guard ¶
type Guard struct {
*kernel.ServerGuard
}
func NewGuard ¶
func NewGuard(app *kernel.ApplicationInterface) *Guard
func RegisterProvider ¶
func (*Guard) DecryptEvent ¶
func (*Guard) GetMessage ¶
func (*Guard) OverrideIsSafeMode ¶ added in v3.2.0
func (guard *Guard) OverrideIsSafeMode()
Override Validate
func (*Guard) OverrideToCallbackType ¶ added in v3.2.0
func (guard *Guard) OverrideToCallbackType()
Click to show internal directories.
Click to hide internal directories.