Documentation ¶
Overview ¶
act like a http/2 client to APNS
Package writer provides methods to write notifications to APNS and keep the http/2 connections with APNS
Index ¶
Constants ¶
View Source
const ( DEVELOPMENT_ENV = "development" PRODUCTION_ENV = "production" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct { // ApnsEnv use to specify which APNS environment to use ApnsEnv string // keypair path for this cert and key pem file // TODO: use this field KeyPairPath string // contains filtered or unexported fields }
func (*Writer) Write ¶
func (w *Writer) Write(n *go2apns.Notification, out chan go2apns.NotiResult) error
Write push notification to APNS
Click to show internal directories.
Click to hide internal directories.