Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Slack *slackClient.Client // contains filtered or unexported fields }
Client is a slack client
func (*Client) GetSlackChannelID ¶
GetSlackChannelID returns the chanel id from an email
func (*Client) PostMessage ¶
PostMessage is DEPRECATED
func (*Client) SendMessageToUser ¶
SendMessageToUser will send the given text to the specified userID.
func (*Client) SendMessageToUserByEmail ¶
func (c *Client) SendMessageToUserByEmail(email, message string, attachments []slackClient.Attachment) error
SendMessageToUserByEmail posts a message
type Message ¶
type Message struct { Text string `json:"text,omitempty"` Email string Attachments []slackClient.Attachment }
Message is a slack message
Click to show internal directories.
Click to hide internal directories.