handlers

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: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HARD_BOUNCE = "hard_bounce"
	SOFT_BOUNCE = "soft_bounce"
	SPAM        = "spam"
)
View Source
const BounceNotification = "Bounce"
View Source
const ComplaintNotification = "Complaint"

Variables

This section is empty.

Functions

func ConcatenateErrors

func ConcatenateErrors(errs *[]error) string

func DisableBounceEmail

func DisableBounceEmail(email string, request *gottp.Request) error

Types

type DefaultLocked

type DefaultLocked struct {
	gottp.BaseHandler
}

func (*DefaultLocked) Delete

func (self *DefaultLocked) Delete(request *gottp.Request)

func (*DefaultLocked) Post

func (self *DefaultLocked) Post(request *gottp.Request)

type MandrillBounce

type MandrillBounce struct {
	gottp.BaseHandler
}

func (*MandrillBounce) Post

func (self *MandrillBounce) Post(request *gottp.Request)

type Notification

type Notification struct {
	gottp.BaseHandler
}

func (*Notification) Put

func (self *Notification) Put(request *gottp.Request)

type Notifications

type Notifications struct {
	gottp.BaseHandler
}

func (*Notifications) Get

func (self *Notifications) Get(request *gottp.Request)

List all notifications

func (*Notifications) Post

func (self *Notifications) Post(request *gottp.Request)

Send a notification to the user depending on preferences

func (*Notifications) Put

func (self *Notifications) Put(request *gottp.Request)

Mark all notifications as read

type SnsBounce

type SnsBounce struct {
	gottp.BaseHandler
}

func (*SnsBounce) Post

func (self *SnsBounce) Post(request *gottp.Request)

type SnsComplaint

type SnsComplaint struct {
	gottp.BaseHandler
}

func (*SnsComplaint) Post

func (self *SnsComplaint) Post(request *gottp.Request)

type Stats

type Stats struct {
	gottp.BaseHandler
}

func (*Stats) Get

func (self *Stats) Get(request *gottp.Request)

Get notification stats

func (*Stats) Put

func (self *Stats) Put(request *gottp.Request)

Update last seen timestamp Add/Update timestamp in last_seen_at collection

type TopicChannel

type TopicChannel struct {
	gottp.BaseHandler
}

func (*TopicChannel) Delete

func (self *TopicChannel) Delete(request *gottp.Request)

func (*TopicChannel) Post

func (self *TopicChannel) Post(request *gottp.Request)

type Topics

type Topics struct {
	gottp.BaseHandler
}

func (*Topics) Get

func (self *Topics) Get(request *gottp.Request)

func (*Topics) Post

func (self *Topics) Post(request *gottp.Request)

Jump to

Keyboard shortcuts

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