apns

package
v0.0.0-...-83e654d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRetryFailed = errors.New("Retry failed")
)

Functions

func New

func New(router router.Router, sender connector.Sender, config Config) (connector.ResponsiveConnector, error)

New creates a new connector.ResponsiveConnector without starting it

func NewSender

func NewSender(config Config) (connector.Sender, error)

func NewSenderUsingPusher

func NewSenderUsingPusher(pusher Pusher, appTopic string) (connector.Sender, error)

Types

type Config

type Config struct {
	Enabled             *bool
	Production          *bool
	CertificateFileName *string
	CertificateBytes    *[]byte
	CertificatePassword *string
	AppTopic            *string
	Workers             *int
	Prefix              *string
	IntervalMetrics     *bool
}

Config is used for configuring the APNS module.

type Pusher

type Pusher interface {
	Push(*apns2.Notification) (*apns2.Response, error)
}

Jump to

Keyboard shortcuts

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