message

package
v1.3.18 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PrefixKey = "__host"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AdapterAmqp

type AdapterAmqp interface {
	String() string
	PublishOnQueue(queueName string, body []byte) error
	SubscribeToQueue(queueName string, consumerName string, handlerFunc AmqpConsumerFunc) error
}

type AdapterMail

type AdapterMail interface {
	String() string
	Send(address []string, body []byte) error
}

type AdapterSms

type AdapterSms interface {
	String() string
	Send(addresses []string, template string, params []string) error
}

type AdapterThirdParty added in v1.3.13

type AdapterThirdParty interface {
	String() string
	GetToken(merchant, platform string) string
	GetConnectUrl(state, scope, redirectUrl string, popUp bool) (string, error)
	GetAccessToken(force bool) (string, error)
	GetUserAccessToken(code, state string) (string, error)
	GetUserInfo(accessToken, openId string) (string, error)
	SendTemplateMessage(openId, templateId, url string, data []byte) (string, error)
}

type AmqpConsumerFunc

type AmqpConsumerFunc func([]byte) error

Jump to

Keyboard shortcuts

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