contract

package
v3.0.50 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2023 License: MIT Imports: 3 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenInterface

type AccessTokenInterface interface {
	GetToken(refresh bool) (resToken *response2.ResponseGetToken, err error)
	Refresh() AccessTokenInterface
	ApplyToRequest(request *http.Request, requestOptions *object.HashMap) (*http.Request, error)
}

type EventHandlerInterface

type EventHandlerInterface interface {
	Handle(request *http.Request, header EventInterface, content interface{}) interface{}
}

type EventInterface

type EventInterface interface {
	GetToUserName() string
	GetFromUserName() string
	GetCreateTime() string
	GetMsgType() string
	GetEvent() string
	GetChangeType() string
	ReadMessage(msg interface{}) error
	GetContent() []byte
}

type MediaInterface

type MediaInterface interface {
	MessageInterface

	GetMediaID() string
}

type MessageInterface

type MessageInterface interface {
	GetType() string
	TransformForJsonRequest(appends *object.HashMap, withType bool) (*object.HashMap, error)

	// default return string
	TransformToXml(appends *object.HashMap, returnAsArray bool) (interface{}, error)
}

Jump to

Keyboard shortcuts

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