channels

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckChannel

func CheckChannel(event db.Event, channel string) bool

CheckChannel : Validates Delivery Channel Support By Event

Types

type EventForEmail

type EventForEmail struct {
	TriggeredEvent db.Event
}

EventForEmail : Email implementation for SMS

func (EventForEmail) ParseTemplate

func (event EventForEmail) ParseTemplate() ([]db.Message, error)

ParseTemplate : Template Parser Implementation for Email

func (EventForEmail) SendMessage

func (event EventForEmail) SendMessage(message db.Message) db.MessageResponse

SendMessage : Messaging Sending for Email

type EventForFake

type EventForFake struct {
	TriggeredEvent db.Event
}

func (EventForFake) ParseTemplate

func (event EventForFake) ParseTemplate() ([]db.Message, error)

ParseTemplate : Parsing Template for SMS

func (EventForFake) SendMessage

func (event EventForFake) SendMessage(message db.Message) db.MessageResponse

SendMessage : Message Sending for SMS

type EventForMessage

type EventForMessage interface {
	ParseTemplate() ([]db.Message, error)

	SendMessage(message db.Message) db.MessageResponse
}

EventForMessage : Interface to be Implemented For Delivery Channels

type EventForSMS

type EventForSMS struct {
	TriggeredEvent db.Event
}

EventForSMS : SMS implementation for SMS

func (EventForSMS) ParseTemplate

func (event EventForSMS) ParseTemplate() ([]db.Message, error)

ParseTemplate : Parsing Template for SMS

func (EventForSMS) SendMessage

func (event EventForSMS) SendMessage(message db.Message) db.MessageResponse

SendMessage : Message Sending for SMS

Jump to

Keyboard shortcuts

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