Skip to content

Commit

Permalink
refactor(server): move server package to internal (#1083)
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps authored Oct 21, 2022
1 parent 071aec7 commit 6e9c7a5
Show file tree
Hide file tree
Showing 21 changed files with 9 additions and 37 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/filtered-github-webhooks.yml

This file was deleted.

8 changes: 4 additions & 4 deletions cmd/flipt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ import (
"github.com/spf13/cobra"
"go.flipt.io/flipt/internal/config"
"go.flipt.io/flipt/internal/info"
"go.flipt.io/flipt/internal/server"
"go.flipt.io/flipt/internal/server/cache"
"go.flipt.io/flipt/internal/server/cache/memory"
"go.flipt.io/flipt/internal/server/cache/redis"
"go.flipt.io/flipt/internal/storage"
"go.flipt.io/flipt/internal/storage/sql"
"go.flipt.io/flipt/internal/storage/sql/mysql"
"go.flipt.io/flipt/internal/storage/sql/postgres"
"go.flipt.io/flipt/internal/storage/sql/sqlite"
"go.flipt.io/flipt/internal/telemetry"
pb "go.flipt.io/flipt/rpc/flipt"
"go.flipt.io/flipt/server"
"go.flipt.io/flipt/server/cache"
"go.flipt.io/flipt/server/cache/memory"
"go.flipt.io/flipt/server/cache/redis"
"go.flipt.io/flipt/swagger"
"go.flipt.io/flipt/ui"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

gocache "github.com/patrickmn/go-cache"
"go.flipt.io/flipt/internal/config"
"go.flipt.io/flipt/server/cache"
"go.flipt.io/flipt/internal/server/cache"
)

// Cache wraps gocache.Cache in order to implement Cacher
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

redis "github.com/go-redis/cache/v8"
"go.flipt.io/flipt/internal/config"
"go.flipt.io/flipt/server/cache"
"go.flipt.io/flipt/internal/server/cache"
)

type Cache struct {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/middleware.go → internal/server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"github.com/gofrs/uuid"
errs "go.flipt.io/flipt/errors"
"go.flipt.io/flipt/internal/server/cache"
flipt "go.flipt.io/flipt/rpc/flipt"
"go.flipt.io/flipt/server/cache"
"go.uber.org/zap"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (

"go.flipt.io/flipt/errors"
"go.flipt.io/flipt/internal/config"
"go.flipt.io/flipt/internal/server/cache/memory"
"go.flipt.io/flipt/internal/storage"
flipt "go.flipt.io/flipt/rpc/flipt"
"go.flipt.io/flipt/server/cache/memory"
"go.uber.org/zap/zaptest"

"github.com/stretchr/testify/assert"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion server/support_test.go → internal/server/support_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"

"github.com/stretchr/testify/mock"
"go.flipt.io/flipt/internal/server/cache"
"go.flipt.io/flipt/internal/storage"
flipt "go.flipt.io/flipt/rpc/flipt"
"go.flipt.io/flipt/server/cache"
)

var _ storage.Store = &storeMock{}
Expand Down

0 comments on commit 6e9c7a5

Please sign in to comment.