Documentation
¶
Index ¶
Constants ¶
View Source
const ( DisplayName = "Slack" HandlerKey = "slack" MessageDirection = "in" MessageBodyType = models.URLEncodedJSONPayloadOrJSON )
Variables ¶
This section is empty.
Functions ¶
func BuildInboundMessageBytes ¶
func BuildInboundMessageBytes(ctx *fasthttp.RequestCtx) []byte
func NewHandler ¶
Types ¶
type SlackWebhookMessage ¶
type SlackWebhookMessage struct {
Username string `json:"username"`
IconEmoji string `json:"icon_emoji"`
IconURL string `json:"icon_url"`
Text string `json:"text"`
}
func SlackWebhookMessageFromBytes ¶
func SlackWebhookMessageFromBytes(bytes []byte) (SlackWebhookMessage, error)
Click to show internal directories.
Click to hide internal directories.