Преглед на файлове

Move config to internal

tags/v2.0.0-rc1
9seconds преди 5 години
родител
ревизия
7bffdcdf4a
променени са 31 файла, в които са добавени 15 реда и са изтрити 15 реда
  1. 1
    1
      internal/cli/access_test.go
  2. 1
    1
      internal/cli/base.go
  3. 0
    0
      internal/config/config.go
  4. 1
    1
      internal/config/config_test.go
  5. 0
    0
      internal/config/testdata/broken.toml
  6. 0
    0
      internal/config/testdata/minimal.toml
  7. 0
    0
      internal/config/testdata/only_secret.toml
  8. 0
    0
      internal/config/type_blocklist_uri.go
  9. 1
    1
      internal/config/type_blocklist_uri_test.go
  10. 0
    0
      internal/config/type_bytes.go
  11. 1
    1
      internal/config/type_bytes_test.go
  12. 0
    0
      internal/config/type_duration.go
  13. 1
    1
      internal/config/type_duration_test.go
  14. 0
    0
      internal/config/type_error_rate.go
  15. 1
    1
      internal/config/type_error_rate_test.go
  16. 0
    0
      internal/config/type_hostport.go
  17. 1
    1
      internal/config/type_hostport_test.go
  18. 0
    0
      internal/config/type_http_path.go
  19. 1
    1
      internal/config/type_http_path_test.go
  20. 0
    0
      internal/config/type_ip.go
  21. 1
    1
      internal/config/type_ip_test.go
  22. 0
    0
      internal/config/type_metric_prefix.go
  23. 1
    1
      internal/config/type_metric_prefix_test.go
  24. 0
    0
      internal/config/type_port.go
  25. 1
    1
      internal/config/type_port_test.go
  26. 0
    0
      internal/config/type_prefer_ip.go
  27. 1
    1
      internal/config/type_prefer_ip_test.go
  28. 0
    0
      internal/config/type_statsd_tag_format.go
  29. 1
    1
      internal/config/type_statsd_tag_format_test.go
  30. 0
    0
      internal/config/type_url.go
  31. 1
    1
      internal/config/type_url_test.go

+ 1
- 1
internal/cli/access_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"net/http"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/9seconds/mtg/v2/internal/testlib"
10 10
 	"github.com/9seconds/mtg/v2/mtglib"
11 11
 	"github.com/jarcoal/httpmock"

+ 1
- 1
internal/cli/base.go Целия файл

@@ -6,7 +6,7 @@ import (
6 6
 	"net/url"
7 7
 	"os"
8 8
 
9
-	"github.com/9seconds/mtg/v2/config"
9
+	"github.com/9seconds/mtg/v2/internal/config"
10 10
 	"github.com/9seconds/mtg/v2/mtglib"
11 11
 	"github.com/9seconds/mtg/v2/network"
12 12
 )

config/config.go → internal/config/config.go Целия файл


config/config_test.go → internal/config/config_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"path/filepath"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/suite"
10 10
 )
11 11
 

config/testdata/broken.toml → internal/config/testdata/broken.toml Целия файл


config/testdata/minimal.toml → internal/config/testdata/minimal.toml Целия файл


config/testdata/only_secret.toml → internal/config/testdata/only_secret.toml Целия файл


config/type_blocklist_uri.go → internal/config/type_blocklist_uri.go Целия файл


config/type_blocklist_uri_test.go → internal/config/type_blocklist_uri_test.go Целия файл

@@ -9,7 +9,7 @@ import (
9 9
 	"strconv"
10 10
 	"testing"
11 11
 
12
-	"github.com/9seconds/mtg/v2/config"
12
+	"github.com/9seconds/mtg/v2/internal/config"
13 13
 	"github.com/stretchr/testify/assert"
14 14
 	"github.com/stretchr/testify/suite"
15 15
 )

config/type_bytes.go → internal/config/type_bytes.go Целия файл


config/type_bytes_test.go → internal/config/type_bytes_test.go Целия файл

@@ -4,7 +4,7 @@ import (
4 4
 	"encoding/json"
5 5
 	"testing"
6 6
 
7
-	"github.com/9seconds/mtg/v2/config"
7
+	"github.com/9seconds/mtg/v2/internal/config"
8 8
 	"github.com/stretchr/testify/assert"
9 9
 	"github.com/stretchr/testify/suite"
10 10
 )

config/type_duration.go → internal/config/type_duration.go Целия файл


config/type_duration_test.go → internal/config/type_duration_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"testing"
6 6
 	"time"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_error_rate.go → internal/config/type_error_rate.go Целия файл


config/type_error_rate_test.go → internal/config/type_error_rate_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"strconv"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_hostport.go → internal/config/type_hostport.go Целия файл


config/type_hostport_test.go → internal/config/type_hostport_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"net"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_http_path.go → internal/config/type_http_path.go Целия файл


config/type_http_path_test.go → internal/config/type_http_path_test.go Целия файл

@@ -4,7 +4,7 @@ import (
4 4
 	"encoding/json"
5 5
 	"testing"
6 6
 
7
-	"github.com/9seconds/mtg/v2/config"
7
+	"github.com/9seconds/mtg/v2/internal/config"
8 8
 	"github.com/stretchr/testify/assert"
9 9
 	"github.com/stretchr/testify/suite"
10 10
 )

config/type_ip.go → internal/config/type_ip.go Целия файл


config/type_ip_test.go → internal/config/type_ip_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"net"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_metric_prefix.go → internal/config/type_metric_prefix.go Целия файл


config/type_metric_prefix_test.go → internal/config/type_metric_prefix_test.go Целия файл

@@ -4,7 +4,7 @@ import (
4 4
 	"encoding/json"
5 5
 	"testing"
6 6
 
7
-	"github.com/9seconds/mtg/v2/config"
7
+	"github.com/9seconds/mtg/v2/internal/config"
8 8
 	"github.com/stretchr/testify/assert"
9 9
 	"github.com/stretchr/testify/suite"
10 10
 )

config/type_port.go → internal/config/type_port.go Целия файл


config/type_port_test.go → internal/config/type_port_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"strconv"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_prefer_ip.go → internal/config/type_prefer_ip.go Целия файл


config/type_prefer_ip_test.go → internal/config/type_prefer_ip_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"strings"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_statsd_tag_format.go → internal/config/type_statsd_tag_format.go Целия файл


config/type_statsd_tag_format_test.go → internal/config/type_statsd_tag_format_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"strings"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

config/type_url.go → internal/config/type_url.go Целия файл


config/type_url_test.go → internal/config/type_url_test.go Целия файл

@@ -5,7 +5,7 @@ import (
5 5
 	"net/url"
6 6
 	"testing"
7 7
 
8
-	"github.com/9seconds/mtg/v2/config"
8
+	"github.com/9seconds/mtg/v2/internal/config"
9 9
 	"github.com/stretchr/testify/assert"
10 10
 	"github.com/stretchr/testify/suite"
11 11
 )

Loading…
Отказ
Запис