core

package
v0.0.0-...-c528213 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EMAIL = "email"
	SMS   = "sms"
	WEB   = "web"
	PUSH  = "push"
	SNS   = "sns"
)
View Source
const (
	PARSE_URL  = "https://api.parse.com/1/push"
	PUSH_SOUND = "default"
)
View Source
const (
	DEFAULT_LOCALE   = "en_US"
	DEFAULT_TIMEZONE = "GMT+0.0"
)
View Source
const (
	PUSH_SOUND_SNS = "default"
)

Variables

View Source
var ChannelMap = map[string]func(*db.PendingItem, string, string, string){
	WEB:   webHandler,
	EMAIL: emailHandler,
	PUSH:  pushHandler,
}

Functions

func IsChannelAvailable

func IsChannelAvailable(ident string) bool

func ProcessDefaults

func ProcessDefaults(user, org string)

func SendNotification

func SendNotification(pending_item *db.PendingItem)

Types

type Parse

type Parse struct {
	Name string
	Key  string
}

Jump to

Keyboard shortcuts

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