aws

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SNS

type SNS struct {
	// contains filtered or unexported fields
}

SNS is a client of AWS SNS

func NewSNS

func NewSNS() *SNS

NewSNS initializes aws session and creates SNS

func (*SNS) FindEndpointsFor

func (s *SNS) FindEndpointsFor(appName string, userID int64, deviceToken string) (endpoints []string, err error)

FindEndpointsFor returns a array of endpoint arn matching with appName+userID or with specific deviceToken

func (*SNS) Send

func (s *SNS) Send(endpoints []string, message string) error

Send publishes push notifications

Jump to

Keyboard shortcuts

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