Skip to content

Commit

Permalink
将公用工具移动到public目录
Browse files Browse the repository at this point in the history
  • Loading branch information
eryajf committed Sep 1, 2024
1 parent 5e064b3 commit c00cda5
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pkg/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import (
"runtime"

"github.com/eryajf/cloud_dns_exporter/pkg/export"
"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/public/logger"

"github.com/eryajf/cloud_dns_exporter/public"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
Expand Down
3 changes: 2 additions & 1 deletion pkg/export/cron_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"fmt"
"sync"

"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/public/logger"

"github.com/eryajf/cloud_dns_exporter/pkg/provider"
"github.com/eryajf/cloud_dns_exporter/public"
"github.com/robfig/cron/v3"
Expand Down
3 changes: 2 additions & 1 deletion pkg/export/export_gauge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import (
"fmt"
"sync"

"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/public/logger"

"github.com/eryajf/cloud_dns_exporter/pkg/provider"
"github.com/eryajf/cloud_dns_exporter/public"
"github.com/prometheus/client_golang/prometheus"
Expand Down
5 changes: 3 additions & 2 deletions pkg/provider/aliyun.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ import (
openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
"github.com/alibabacloud-go/tea/tea"

"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/pkg/tools"
"github.com/eryajf/cloud_dns_exporter/public/logger"
"github.com/eryajf/cloud_dns_exporter/public/tools"

"github.com/eryajf/cloud_dns_exporter/public"
)

Expand Down
3 changes: 2 additions & 1 deletion pkg/provider/tencent.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"time"

"github.com/alibabacloud-go/tea/tea"
"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/public/logger"

"github.com/eryajf/cloud_dns_exporter/public"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion public/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ import (
"time"

"github.com/allegro/bigcache/v3"
"github.com/eryajf/cloud_dns_exporter/pkg/logger"
"github.com/eryajf/cloud_dns_exporter/public/logger"

"gopkg.in/yaml.v2"
)

Expand Down
File renamed without changes.

0 comments on commit c00cda5

Please sign in to comment.