Просмотр исходного кода

Move config to internal

tags/v2.0.0-rc1
9seconds 5 лет назад
Родитель
Сommit
7bffdcdf4a

+ 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
 )

Загрузка…
Отмена
Сохранить