Categorygithub.com/ispec-inc/notification
modulepackage
0.0.0-20210118001443-a47768e25dbc
Repository: https://github.com/ispec-inc/notification.git
Documentation: pkg.go.dev

# README

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

# Packages

Package mock_notification is a generated GoMock package.

# Functions

NewAWS is a contructor of the `AWSPublisher`.
No description provided by the author

# Constants

The main version number that is being run at the moment.

# Variables

The git commit that was compiled.
A pre-release marker for the version.

# Structs

AWSPublisher is a AWS SNS implementation of the `Service` interface.
Input is a struct which input to `Send` method of `Service` interface.
LocalLogger is a logginng the notification information in console.

# Interfaces

Service is an interface of notification.