repositorypackage
0.0.0-20210118001443-a47768e25dbc
Repository: https://github.com/ispec-inc/notification.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
notification
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