Skip to content

ispec-inc/notification

Repository files navigation

notification

Go Report Card PkgGoDev

A simple notification library written in golang.

Installation

$ go get -u github.com/ispec-inc/notification

Usage

n := notification.NewAWS(
    "YOUR AWS Access Key",
    "YOUR AWS Secret Key",
    "YOUR AWS Platform Application ARN",
)
ipt := notification.Input{
    Title: "Hello",
    Message: "Message",
    DeviceToken: "iOS Device Token",
}
err := n.Send(ipt)
if err != nil {
    //handling error
}

In the test time, you can use mock_notification package. Also in the development time, you can use LocalPublisher which logging the notification information in console.

LICENCE

Copyright © 2017 Yusuke Yamada MIT license