Documentation ¶
Overview ¶
Package channels provides different communication channels to notify users.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface { // SendMessage sends a message to users. SendMessage(userIDs []string, msg string) error // SendMessageToGroup sends a message to a group. SendMessageToGroup(groupdID *groups.GroupId, msg string) error }
Channel defines the methods of a communication channel.
type Mail ¶
type Mail struct {
// contains filtered or unexported fields
}
Mail is the communication channel for email.
func (Mail) SendMessage ¶
SendMessage sends a message to all given users.
Click to show internal directories.
Click to hide internal directories.