diff options
Diffstat (limited to 'models/slack.go')
-rw-r--r-- | models/slack.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/models/slack.go b/models/slack.go index 3dd40759af..0b1b579ff0 100644 --- a/models/slack.go +++ b/models/slack.go @@ -16,8 +16,6 @@ const ( ) type Slack struct { - Domain string `json:"domain"` - Token string `json:"token"` Channel string `json:"channel"` } @@ -36,14 +34,6 @@ type SlackAttachment struct { Text string `json:"text"` } -func GetSlackURL(domain string, token string) string { - return fmt.Sprintf( - "https://%s.slack.com/services/hooks/incoming-webhook?token=%s", - domain, - token, - ) -} - func (p SlackPayload) GetJSONPayload() ([]byte, error) { data, err := json.Marshal(p) if err != nil { |