jpush

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KeyLength .
	KeyLength = 24
	// ConnTimeout .
	ConnTimeout = 5
	// RwTimeout .
	RwTimeout = 30
)
View Source
const (
	// Tag .
	Tag = "tag"
	// TagAnd .
	TagAnd = "tag_and"
	// TagNot .
	TagNot = "tag_not"
	// ALIAS .
	ALIAS = "alias"
	// Segment .
	Segment = "segment"
	// Abtest .
	Abtest = "abtest"
	// RegistrationID .
	RegistrationID = "registration_id"
	// File .
	File = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AudienceType

type AudienceType string

AudienceType .

type Client

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

Client .

func NewClient

func NewClient(appKey, masterSecret string) *Client

NewClient .

func (*Client) Push

func (c *Client) Push(po *builder.PushPayload) (string, error)

Push .

type ReportClient

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

ReportClient .

func NewReportClient

func NewReportClient(appKey, masterSecret string) *ReportClient

NewReportClient .

func (*ReportClient) GetReport

func (c *ReportClient) GetReport(msgID ...int) (string, error)

GetReport .

func (*ReportClient) GetReportObject

func (c *ReportClient) GetReportObject(msgIds ...int) ([]ReportObject, error)

GetReportObject .

type ReportObject

type ReportObject struct {
	AndroidReceived int
	IosApnsSent     int
	MsgID           int
}

ReportObject .

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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