contract

package
v3.2.43 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 4 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(ctx context.Context, refresh bool) (resToken *response2.ResponseGetToken, err error)
	Refresh(ctx context.Context) 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() int
	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