gotification

package module
v0.0.0-...-c2b477c Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2016 License: MIT Imports: 5 Imported by: 0

README

gotification

usage

  1. gotification.Option{GCM string, APN string}.Set() GCM is apikey, APN is filename of certification file.
  2. gotification.Notification{Message string, IOSReceivers []string, AndroidReceivers []string}
  3. gotification.Notification.Send()

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	APN string
	GCM string
}

func (*Config) Set

func (c *Config) Set() (err error)

type Notification

type Notification struct {
	Message      string
	APNReceivers []string
	GCMReceivers []string
}

func (*Notification) Send

func (n *Notification) Send() (errList Notification, err error)

Jump to

Keyboard shortcuts

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