server

package
v3.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 14 Imported by: 1

Documentation

Index

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 RegisterProvider(app kernel.ApplicationInterface) (*kernel.Encryptor, *Guard, error)

func (*Guard) DecryptEvent

func (guard *Guard) DecryptEvent(content string) (bufDecrypted []byte, err error)

func (*Guard) GetMessage

func (guard *Guard) GetMessage(request *http.Request) (ev models.IEvent, msg interface{}, err error)

func (*Guard) Notify

func (guard *Guard) Notify(request *http.Request, closure func(content *kernelModels.Callback, ev models.IEvent, callbackMsg interface{}) interface{}) (httpRS *http.Response, err error)

func (*Guard) OverrideIsSafeMode added in v3.2.0

func (guard *Guard) OverrideIsSafeMode()

Override Validate

func (*Guard) OverrideResolve

func (guard *Guard) OverrideResolve()

Override Validate

func (*Guard) OverrideToCallbackType added in v3.2.0

func (guard *Guard) OverrideToCallbackType()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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