xinge

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	XINGE_PARAMS_COUNT = 3 //必填参数个数
)

Variables

View Source
var (
	XINGE_AUDIENCE_ALL          = "all"
	XINGE_AUDIENCE_TAG          = "tag"
	XINGE_AUDIENCE_TOKEN        = "token"
	XINGE_AUDIENCE_TOKEN_LIST   = "token_list"
	XINGE_AUDIENCE_ACCOUNT      = "account"
	XINGE_AUDIENCE_ACCOUNT_LIST = "account_list"
)
View Source
var (
	XINGE_ENV_DEV     = "dev"     //开发环境
	XINGE_ENV_PRODUCT = "product" //生产环境
)
View Source
var (
	XINGE_PUSH_TYPE_NOTIFY  = "notify"  //通知
	XINGE_PUSH_TYPE_MESSAGE = "message" //透传消息
)
View Source
var (
	XINGE_PLATFORM_ANDROID = "android"
	XINGE_PLATFORM_IOS     = "ios"
)
View Source
var XINGE_PUSHAPI_URL = "https://openapi.xg.qq.com/v3/push/app"

Functions

This section is empty.

Types

type XinGe

type XinGe struct {
	// contains filtered or unexported fields
}

func (*XinGe) Debug

func (x *XinGe) Debug(enable bool)

开启关闭调试日志

func (*XinGe) PushNotification

func (x *XinGe) PushNotification(msg *push.Notification) (MsgID string, err error)

APP消息推送: 推送到信鸽服务器 platforms 指定平台(目前友盟仅支持Android)

Jump to

Keyboard shortcuts

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