Documentation ¶
Index ¶
- type APS
- type Apnian
- func (apnian Apnian) AuthKey() (*ecdsa.PrivateKey, error)
- func (apnian Apnian) AuthKeyPath() string
- func (apnian Apnian) Notification(deviceID string, payload *APS) *apns2.Notification
- func (apnian Apnian) Push(deviceID string, payload *APS) (*apns2.Response, error)
- func (apnian Apnian) Token() (*token.Token, error)
- type ApnianConfigurer
- type Payload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Apnian ¶
type Apnian struct { P8KeyName string Topic string APNSKeyID string TeamID string Configurer *ApnianConfigurer Client *apns2.Client }
func New ¶
New returns an Apnian filed with the values in its config file. Locations it looks for are:
. .. $GOPATH/config $HOME
func (Apnian) AuthKey ¶
func (apnian Apnian) AuthKey() (*ecdsa.PrivateKey, error)
AuthKey returns the ECDSA private key specified in the Apnian file.
func (Apnian) AuthKeyPath ¶
AuthKeyPath returns the path to the ECDSA private key specified in the Apnian file.
func (Apnian) Notification ¶
func (apnian Apnian) Notification(deviceID string, payload *APS) *apns2.Notification
type ApnianConfigurer ¶
Click to show internal directories.
Click to hide internal directories.