From 9d016212c8af6d0a61e0e83ef48006fb20a80c0f Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Thu, 31 Mar 2022 15:31:21 +0800 Subject: [PATCH] move sender package to common --- src/server/{ => common}/sender/dingtalk.go | 0 src/server/{ => common}/sender/email.go | 0 src/server/{ => common}/sender/feishu.go | 0 src/server/{ => common}/sender/wecom.go | 0 src/server/engine/engine.go | 2 +- src/server/engine/notify.go | 2 +- 6 files changed, 2 insertions(+), 2 deletions(-) rename src/server/{ => common}/sender/dingtalk.go (100%) rename src/server/{ => common}/sender/email.go (100%) rename src/server/{ => common}/sender/feishu.go (100%) rename src/server/{ => common}/sender/wecom.go (100%) diff --git a/src/server/sender/dingtalk.go b/src/server/common/sender/dingtalk.go similarity index 100% rename from src/server/sender/dingtalk.go rename to src/server/common/sender/dingtalk.go diff --git a/src/server/sender/email.go b/src/server/common/sender/email.go similarity index 100% rename from src/server/sender/email.go rename to src/server/common/sender/email.go diff --git a/src/server/sender/feishu.go b/src/server/common/sender/feishu.go similarity index 100% rename from src/server/sender/feishu.go rename to src/server/common/sender/feishu.go diff --git a/src/server/sender/wecom.go b/src/server/common/sender/wecom.go similarity index 100% rename from src/server/sender/wecom.go rename to src/server/common/sender/wecom.go diff --git a/src/server/engine/engine.go b/src/server/engine/engine.go index c2524c54..4d1141d6 100644 --- a/src/server/engine/engine.go +++ b/src/server/engine/engine.go @@ -4,8 +4,8 @@ import ( "context" "time" + "github.com/didi/nightingale/v5/src/server/common/sender" "github.com/didi/nightingale/v5/src/server/config" - "github.com/didi/nightingale/v5/src/server/sender" promstat "github.com/didi/nightingale/v5/src/server/stat" ) diff --git a/src/server/engine/notify.go b/src/server/engine/notify.go index 0cee497e..530c7b94 100644 --- a/src/server/engine/notify.go +++ b/src/server/engine/notify.go @@ -22,9 +22,9 @@ import ( "github.com/didi/nightingale/v5/src/models" "github.com/didi/nightingale/v5/src/pkg/sys" + "github.com/didi/nightingale/v5/src/server/common/sender" "github.com/didi/nightingale/v5/src/server/config" "github.com/didi/nightingale/v5/src/server/memsto" - "github.com/didi/nightingale/v5/src/server/sender" "github.com/didi/nightingale/v5/src/storage" )