send slack msg by api (#525)

This commit is contained in:
sadayuki-matsuno
2017-10-26 13:30:01 +09:00
committed by Kota Kanbe
parent 84d0655c52
commit eb2acaff22
5 changed files with 93 additions and 48 deletions

View File

@@ -379,10 +379,11 @@ func (c *SMTPConf) Validate() (errs []error) {
// SlackConf is slack config
type SlackConf struct {
HookURL string `valid:"url" json:"-"`
Channel string `json:"channel"`
IconEmoji string `json:"icon_emoji"`
AuthUser string `json:"username"`
HookURL string `valid:"url" json:"-"`
LegacyToken string `json:"token" toml:"legacyToken,omitempty"`
Channel string `json:"channel"`
IconEmoji string `json:"icon_emoji"`
AuthUser string `json:"username"`
NotifyUsers []string
Text string `json:"text"`