From 637f27d38708890364967dbe9094a31597bc7fe4 Mon Sep 17 00:00:00 2001 From: id Date: Fri, 16 Nov 2018 11:07:15 +0300 Subject: [PATCH] change imports to inhuman repo --- discord/chat.go | 2 +- go.mod | 2 +- hipchat/chat.go | 2 +- log/log.go | 2 +- mailgun/mail.go | 2 +- mattermost/chat.go | 2 +- plivo/sms.go | 2 +- pushover/notify.go | 4 ++-- slack/chat.go | 2 +- smtp/mail.go | 2 +- stride/chat.go | 2 +- telegram/chat.go | 7 +++---- twilio/sms.go | 2 +- unified/notifier.go | 24 ++++++++++++------------ webhook/http.go | 2 +- 15 files changed, 29 insertions(+), 30 deletions(-) diff --git a/discord/chat.go b/discord/chat.go index d1893f4..ef87f41 100644 --- a/discord/chat.go +++ b/discord/chat.go @@ -4,8 +4,8 @@ import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" "github.com/bwmarrin/discordgo" + "github.com/inhuman/go-notify" ) const UID = "discord" diff --git a/go.mod b/go.mod index 52170d0..a0c4a21 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/appscode/go-notify +module github.com/inhuman/go-notify require ( bitbucket.org/atlassian/go-stride v0.0.0-20180601005642-78855f0a5d80 diff --git a/hipchat/chat.go b/hipchat/chat.go index 237abb7..02ce28e 100644 --- a/hipchat/chat.go +++ b/hipchat/chat.go @@ -10,7 +10,7 @@ import ( "time" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" "github.com/tbruyelle/hipchat-go/hipchat" ) diff --git a/log/log.go b/log/log.go index 0c0f65d..68f2703 100644 --- a/log/log.go +++ b/log/log.go @@ -6,7 +6,7 @@ import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" ) const UID = "stdout" diff --git a/mailgun/mail.go b/mailgun/mail.go index 228cce1..69830e4 100644 --- a/mailgun/mail.go +++ b/mailgun/mail.go @@ -3,7 +3,7 @@ package mailgun import ( "errors" "github.com/appscode/envconfig" - notify "github.com/appscode/go-notify" + notify "github.com/inhuman/go-notify" h2t "github.com/jaytaylor/html2text" mailgun "github.com/mailgun/mailgun-go" ) diff --git a/mattermost/chat.go b/mattermost/chat.go index cd71b96..e8ec31e 100644 --- a/mattermost/chat.go +++ b/mattermost/chat.go @@ -6,8 +6,8 @@ import ( "errors" "fmt" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" "github.com/golang/glog" + "github.com/inhuman/go-notify" "net/http" ) diff --git a/plivo/sms.go b/plivo/sms.go index 56c7a66..5fc8b6f 100644 --- a/plivo/sms.go +++ b/plivo/sms.go @@ -9,7 +9,7 @@ import ( "time" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" ) const ( diff --git a/pushover/notify.go b/pushover/notify.go index c3f02b4..b062f73 100644 --- a/pushover/notify.go +++ b/pushover/notify.go @@ -9,7 +9,7 @@ import ( "strings" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" ) const ( @@ -84,7 +84,7 @@ func (c *client) Send() error { if c.opt.Token == "" { return errors.New("Missing token") } - if c.opt.User =="" { + if c.opt.User == "" { return errors.New("Missing user") } if c.opt.Message == "" { diff --git a/slack/chat.go b/slack/chat.go index 3aaa268..4f2dfd6 100644 --- a/slack/chat.go +++ b/slack/chat.go @@ -3,7 +3,7 @@ package slack import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" "github.com/nlopes/slack" ) diff --git a/smtp/mail.go b/smtp/mail.go index 788115b..e01905b 100644 --- a/smtp/mail.go +++ b/smtp/mail.go @@ -5,7 +5,7 @@ import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" gomail "gopkg.in/gomail.v2" ) diff --git a/stride/chat.go b/stride/chat.go index 943b5fc..686bef1 100644 --- a/stride/chat.go +++ b/stride/chat.go @@ -6,7 +6,7 @@ import ( "bitbucket.org/atlassian/go-stride/pkg/stride" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" ) const ( diff --git a/telegram/chat.go b/telegram/chat.go index 9ae0dab..3a63301 100644 --- a/telegram/chat.go +++ b/telegram/chat.go @@ -4,12 +4,11 @@ import ( "encoding/json" "errors" "fmt" - "net/http" - "net/url" - "github.com/appscode/envconfig" - "github.com/appscode/go-notify" "github.com/golang/glog" + "github.com/inhuman/go-notify" + "net/http" + "net/url" ) const UID = "telegram" diff --git a/twilio/sms.go b/twilio/sms.go index 3bddb0c..f753a1a 100644 --- a/twilio/sms.go +++ b/twilio/sms.go @@ -9,7 +9,7 @@ import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" + "github.com/inhuman/go-notify" ) const UID = "twilio" diff --git a/unified/notifier.go b/unified/notifier.go index cb1faf5..626f701 100644 --- a/unified/notifier.go +++ b/unified/notifier.go @@ -7,18 +7,18 @@ import ( "strings" "github.com/appscode/envconfig" - "github.com/appscode/go-notify/discord" - "github.com/appscode/go-notify/hipchat" - "github.com/appscode/go-notify/log" - "github.com/appscode/go-notify/mailgun" - "github.com/appscode/go-notify/plivo" - "github.com/appscode/go-notify/pushover" - "github.com/appscode/go-notify/slack" - "github.com/appscode/go-notify/smtp" - "github.com/appscode/go-notify/stride" - "github.com/appscode/go-notify/telegram" - "github.com/appscode/go-notify/twilio" - "github.com/appscode/go-notify/webhook" + "github.com/inhuman/go-notify/discord" + "github.com/inhuman/go-notify/hipchat" + "github.com/inhuman/go-notify/log" + "github.com/inhuman/go-notify/mailgun" + "github.com/inhuman/go-notify/plivo" + "github.com/inhuman/go-notify/pushover" + "github.com/inhuman/go-notify/slack" + "github.com/inhuman/go-notify/smtp" + "github.com/inhuman/go-notify/stride" + "github.com/inhuman/go-notify/telegram" + "github.com/inhuman/go-notify/twilio" + "github.com/inhuman/go-notify/webhook" ) const ( diff --git a/webhook/http.go b/webhook/http.go index 46c49a8..f973286 100644 --- a/webhook/http.go +++ b/webhook/http.go @@ -5,8 +5,8 @@ import ( "errors" "github.com/appscode/envconfig" - "github.com/appscode/go-notify" "github.com/appscode/go/net/httpclient" + "github.com/inhuman/go-notify" ) const UID = "webhook"