mppush

package
Version: v0.0.0-...-3faa710 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Overview

*

* Created by GoLand.
* User: 姜伟
* Date: 2020/2/2 0002
* Time: 22:27

*

* Created by GoLand.
* User: 姜伟
* Date: 2020/2/2 0002
* Time: 22:27

*

* Created by GoLand.
* User: 姜伟
* Date: 2020/2/2 0002
* Time: 22:27

*

* Created by GoLand.
* User: 姜伟
* Date: 2020/2/2 0002
* Time: 22:27

Index

Constants

View Source
const (
	BaiDuDeviceTypeAll     = "0"
	BaiDuDeviceTypeAndroid = "3"
	BaiDuDeviceTypeIOS     = "4"
	BaiDuServiceDomain     = "https://api.tuisong.baidu.com"
	BaiDuServiceUriPrefix  = "/rest/3.0"

	XinGePlatformTypeAll     = "all"
	XinGePlatformTypeAndroid = "android"
	XinGePlatformTypeIOS     = "ios"
	XinGeServiceDomain       = "https://openapi.xg.qq.com/v3/"

	JPushPlatformTypeAll      = "all"
	JPushPlatformTypeAndroid  = "android"
	JPushPlatformTypeIOS      = "ios"
	JPushPlatformTypeWinPhone = "winphone"
	JPushServiceDomainAdmin   = "https://admin.jpush.cn"
	JPushServiceDomainDevice  = "https://device.jpush.cn"
	JPushServiceDomainApi     = "https://api.jpush.cn"
	JPushServiceDomainReport  = "https://report.jpush.cn"
)

Variables

View Source
var (
	BaiDuDeviceTypes   map[string]string
	XinGePlatformTypes map[string]string
	JPushPlatformTypes map[string]string
)

Functions

func LoadConfig

func LoadConfig(outer IPushConfig)

func NewConfig

func NewConfig() *configPush

func NewConfigJPushApp

func NewConfigJPushApp() *configJPushApp

func NewConfigJPushGroup

func NewConfigJPushGroup() *configJPushGroup

func NewUtil

func NewUtil() *utilPush

Types

type BaseBaiDu

type BaseBaiDu struct {
	ServiceUri string // 服务URI
	// contains filtered or unexported fields
}

func NewBaseBaiDu

func NewBaseBaiDu() BaseBaiDu

func (*BaseBaiDu) GetRequest

func (bd *BaseBaiDu) GetRequest() (*fasthttp.Client, *fasthttp.Request)

type BaseJPush

type BaseJPush struct {
	ServiceUri string // 服务URI
	// contains filtered or unexported fields
}

func NewBaseJPush

func NewBaseJPush(domain, key, authType string) BaseJPush

func (*BaseJPush) GetRequest

func (jp *BaseJPush) GetRequest() (*fasthttp.Client, *fasthttp.Request)

func (*BaseJPush) GetServiceUrl

func (jp *BaseJPush) GetServiceUrl() string

type BaseXinGe

type BaseXinGe struct {
	ServiceUri string // 服务URI
	// contains filtered or unexported fields
}

func NewBaseXinGe

func NewBaseXinGe(platform string) BaseXinGe

func (*BaseXinGe) GetRequest

func (xg *BaseXinGe) GetRequest() (*fasthttp.Client, *fasthttp.Request)

type IPushConfig

type IPushConfig interface {
	RefreshConfigJPushApp(key string) *configJPushApp     // 刷新极光App配置
	RefreshConfigJPushGroup(key string) *configJPushGroup // 刷新极光分组配置
}

Directories

Path Synopsis
baidu
push
* * Created by GoLand.
* * Created by GoLand.
report
* * Created by GoLand.
* * Created by GoLand.
tag
* * Created by GoLand.
* * Created by GoLand.
timer
* * Created by GoLand.
* * Created by GoLand.
topic
* * Created by GoLand.
* * Created by GoLand.
jpush
admin
* * Created by GoLand.
* * Created by GoLand.
device
* * Created by GoLand.
* * Created by GoLand.
push
* * Created by GoLand.
* * Created by GoLand.
report
* * Created by GoLand.
* * Created by GoLand.
schedules
* * Created by GoLand.
* * Created by GoLand.
xinge
device
* * Created by GoLand.
* * Created by GoLand.
push
* * Created by GoLand.
* * Created by GoLand.

Jump to

Keyboard shortcuts

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