Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AbstractMessage ¶
type AbstractMessage interface {
SendMessage(text, to string)
}
type CommonMessage ¶
type CommonMessage struct {
// contains filtered or unexported fields
}
func NewCommonMessage ¶
func NewCommonMessage(method MessageImplementer) *CommonMessage
func (*CommonMessage) SendMessage ¶
func (m *CommonMessage) SendMessage(text, to string)
type MessageEmail ¶
type MessageEmail struct{}
func (*MessageEmail) Send ¶
func (*MessageEmail) Send(text, to string)
type MessageImplementer ¶
type MessageImplementer interface {
Send(text, to string)
}
func ViaEmail ¶
func ViaEmail() MessageImplementer
func ViaSMS ¶
func ViaSMS() MessageImplementer
type MessageSMS ¶
type MessageSMS struct{}
func (*MessageSMS) Send ¶
func (*MessageSMS) Send(text, to string)
type UrgencyMessage ¶
type UrgencyMessage struct {
// contains filtered or unexported fields
}
func NewUrgencyMessage ¶
func NewUrgencyMessage(method MessageImplementer) *UrgencyMessage
func (*UrgencyMessage) SendMessage ¶
func (m *UrgencyMessage) SendMessage(text, to string)
Click to show internal directories.
Click to hide internal directories.