server

package
v3.0.45 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const EVENT_AUTHORIZED int = 12000 // "authorized"
View Source
const EVENT_COMPONENT_VERIFY_TICKET int = 12004 // "component_verify_ticket"
View Source
const EVENT_THIRD_FAST_REGISTERED int = 120005 //  "notify_third_fasteregister"
View Source
const EVENT_UNAUTHORIZED int = 12002 // "unauthorized"
View Source
const EVENT_UPDATE_AUTHORIZED int = 12003 //  "updateauthorized"

Variables

This section is empty.

Functions

func GetOpenPlatformEvent

func GetOpenPlatformEvent(infoType string) 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) (verifyTicket *response2.ResponseVerifyTicket, err error)

func (*Guard) Notify

func (guard *Guard) Notify(request *http.Request, closure func(content *openplatform.Callback, decrypted []byte, infoType string) interface{}) (httpRS *http.Response, err error)

func (*Guard) OverrideResolve

func (guard *Guard) OverrideResolve()

Override Validate

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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