writer

package
v0.0.0-...-1ee6863 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2016 License: MIT Imports: 11 Imported by: 0

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) Reconnect

func (w *Writer) Reconnect()

func (*Writer) Write

func (w *Writer) Write(n *go2apns.Notification, out chan go2apns.NotiResult) error

Write push notification to APNS

Jump to

Keyboard shortcuts

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