Skip to content

Commit 073d08f

Browse files
authored
Mv config internal (#1036)
1 parent 71e3026 commit 073d08f

25 files changed

+13
-13
lines changed

.dockerignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
.github/
1515
.vscode/
1616
.task/
17-
Dockerfile
17+
Dockerfile*
1818
LICENSE
1919
bin/
2020
examples/

cmd/flipt/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/phyber/negroni-gzip/gzip"
3232
"github.com/prometheus/client_golang/prometheus/promhttp"
3333
"github.com/spf13/cobra"
34-
"go.flipt.io/flipt/config"
34+
"go.flipt.io/flipt/internal/config"
3535
"go.flipt.io/flipt/internal/info"
3636
"go.flipt.io/flipt/internal/telemetry"
3737
pb "go.flipt.io/flipt/rpc/flipt"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

internal/telemetry/telemetry.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"time"
1212

1313
"github.com/gofrs/uuid"
14-
"go.flipt.io/flipt/config"
14+
"go.flipt.io/flipt/internal/config"
1515
"go.flipt.io/flipt/internal/info"
1616
"go.uber.org/zap"
1717
"gopkg.in/segmentio/analytics-go.v3"

internal/telemetry/telemetry_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/require"
14-
"go.flipt.io/flipt/config"
14+
"go.flipt.io/flipt/internal/config"
1515
"go.flipt.io/flipt/internal/info"
1616
"go.uber.org/zap/zaptest"
1717

server/cache/memory/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"sync/atomic"
66

77
gocache "github.com/patrickmn/go-cache"
8-
"go.flipt.io/flipt/config"
8+
"go.flipt.io/flipt/internal/config"
99
"go.flipt.io/flipt/server/cache"
1010
)
1111

server/cache/memory/cache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66

77
"github.com/stretchr/testify/assert"
8-
"go.flipt.io/flipt/config"
8+
"go.flipt.io/flipt/internal/config"
99
)
1010

1111
func TestNewCache(t *testing.T) {

server/cache/redis/cache.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"sync/atomic"
77

88
redis "github.com/go-redis/cache/v8"
9-
"go.flipt.io/flipt/config"
9+
"go.flipt.io/flipt/internal/config"
1010
"go.flipt.io/flipt/server/cache"
1111
)
1212

server/cache/redis/cache_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/stretchr/testify/assert"
1212
"github.com/testcontainers/testcontainers-go"
1313
"github.com/testcontainers/testcontainers-go/wait"
14-
"go.flipt.io/flipt/config"
14+
"go.flipt.io/flipt/internal/config"
1515
)
1616

1717
func TestSet(t *testing.T) {

server/middleware_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"testing"
66
"time"
77

8-
"go.flipt.io/flipt/config"
98
"go.flipt.io/flipt/errors"
9+
"go.flipt.io/flipt/internal/config"
1010
flipt "go.flipt.io/flipt/rpc/flipt"
1111
"go.flipt.io/flipt/server/cache/memory"
1212
"go.flipt.io/flipt/storage"

storage/sql/db.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/luna-duclos/instrumentedsql/opentracing"
1313
"github.com/mattn/go-sqlite3"
1414
"github.com/xo/dburl"
15-
"go.flipt.io/flipt/config"
15+
"go.flipt.io/flipt/internal/config"
1616
)
1717

1818
// Open opens a connection to the db

storage/sql/db_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"github.com/golang-migrate/migrate/database/sqlite3"
1616
"github.com/stretchr/testify/assert"
1717
"github.com/stretchr/testify/require"
18-
"go.flipt.io/flipt/config"
18+
"go.flipt.io/flipt/internal/config"
1919
"go.flipt.io/flipt/storage"
2020
"go.flipt.io/flipt/storage/sql/mysql"
2121
"go.flipt.io/flipt/storage/sql/postgres"

storage/sql/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type statsGetter interface {
1616
Stats() sql.DBStats
1717
}
1818

19-
//nolint
19+
// nolint
2020
func registerMetrics(d Driver, s statsGetter) {
2121
labels := prometheus.Labels{"driver": d.String()}
2222

storage/sql/migrator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/golang-migrate/migrate/database/mysql"
1111
"github.com/golang-migrate/migrate/database/postgres"
1212
"github.com/golang-migrate/migrate/database/sqlite3"
13-
"go.flipt.io/flipt/config"
13+
"go.flipt.io/flipt/internal/config"
1414
"go.uber.org/zap"
1515
)
1616

0 commit comments

Comments
 (0)