|
|
|
@ -16,11 +16,13 @@ import (
|
|
|
|
|
|
|
|
|
|
// OMessage for mattermost incoming webhook. (send to mattermost)
|
|
|
|
|
type OMessage struct {
|
|
|
|
|
Channel string `json:"channel,omitempty"`
|
|
|
|
|
IconURL string `json:"icon_url,omitempty"`
|
|
|
|
|
IconEmoji string `json:"icon_emoji,omitempty"`
|
|
|
|
|
UserName string `json:"username,omitempty"`
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
Channel string `json:"channel,omitempty"`
|
|
|
|
|
IconURL string `json:"icon_url,omitempty"`
|
|
|
|
|
IconEmoji string `json:"icon_emoji,omitempty"`
|
|
|
|
|
UserName string `json:"username,omitempty"`
|
|
|
|
|
Text string `json:"text"`
|
|
|
|
|
Attachments interface{} `json:"attachments,omitempty"`
|
|
|
|
|
Type string `json:"type,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IMessage for mattermost outgoing webhook. (received from mattermost)
|
|
|
|
|