Documentation
¶
Overview ¶
package slack is SFO Museum's opinionated package for doing things with Slack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// The name of the channel to post the message to.
Channel string `json:"channel"`
// The body of the message to post to a channel.
Text string `json:"text"`
}
type Message defines a struct for messages posted to Slack
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
type Webhook defines a struct for sending messages to a Slack Webhook URL.
func NewWebhook ¶
NewWebhook returns a new `Webhook` instance for posting messages to 'url'.
Directories
¶
| Path | Synopsis |
|---|---|
|
package cmd provides opinionated command-line tools for doing things with Slack.
|
package cmd provides opinionated command-line tools for doing things with Slack. |
|
to-slack
command
post is a command-line tool for posting messages to a Slack channel.
|
post is a command-line tool for posting messages to a Slack channel. |
|
package writer implements the io.Writer interface for posting messages to Slack.
|
package writer implements the io.Writer interface for posting messages to Slack. |
Click to show internal directories.
Click to hide internal directories.