Skip to content

Commit

Permalink
move template from pkg -> internal
Browse files Browse the repository at this point in the history
  • Loading branch information
mylxsw committed Sep 17, 2020
1 parent ac0275b commit 0d685e9
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion api/controller/dingding_robot.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"time"

"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pubsub"
"github.com/mylxsw/container"
"github.com/mylxsw/glacier/event"
Expand Down
2 changes: 1 addition & 1 deletion api/controller/group.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/container"
"github.com/mylxsw/glacier/web"
"go.mongodb.org/mongo-driver/bson"
Expand Down
2 changes: 1 addition & 1 deletion api/controller/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/mylxsw/adanos-alert/internal/job"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/misc"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/service"
"github.com/mylxsw/asteria/log"
"github.com/mylxsw/container"
Expand Down
2 changes: 1 addition & 1 deletion api/controller/rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/mylxsw/adanos-alert/internal/action"
"github.com/mylxsw/adanos-alert/internal/matcher"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/misc"
"github.com/mylxsw/adanos-alert/pkg/strarr"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/pubsub"
"github.com/mylxsw/container"
"github.com/mylxsw/glacier/event"
Expand Down
2 changes: 1 addition & 1 deletion api/view/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"

"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/container"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/action/dingding.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/mylxsw/adanos-alert/configs"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/messager/dingding"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/asteria/log"
"github.com/mylxsw/coll"
"go.mongodb.org/mongo-driver/bson"
Expand Down
2 changes: 1 addition & 1 deletion internal/action/phone_call_aliyun.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"github.com/mylxsw/adanos-alert/configs"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/messager/aliyun_voice"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/asteria/log"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/matcher/trigger_matcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/antonmedv/expr"
"github.com/antonmedv/expr/vm"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/asteria/log"
"github.com/mylxsw/container"
"go.mongodb.org/mongo-driver/bson"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/messager/dingding/dingding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"strings"
"testing"

"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/messager/dingding"
"github.com/mylxsw/adanos-alert/pkg/template"
"github.com/mylxsw/asteria/log"
_ "github.com/pingcap/parser/test_driver"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion pkg/misc/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (

"github.com/jeremywohl/flatten"
"github.com/mylxsw/adanos-alert/internal/repository"
"github.com/mylxsw/adanos-alert/internal/template"
"github.com/mylxsw/adanos-alert/pkg/strarr"
"github.com/mylxsw/adanos-alert/pkg/template"
)

type CommonMessage struct {
Expand Down

0 comments on commit 0d685e9

Please sign in to comment.