Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
moved pkg/middleware to internal/middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
begelundmuller committed Feb 12, 2020
1 parent 094149e commit 7a5574c
Show file tree
Hide file tree
Showing 32 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion cmd/gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/beneath-core/pkg/envutil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/segment"
"github.com/beneath-core/internal/segment"
"github.com/beneath-core/db"
gw "github.com/beneath-core/gateway"
gwgrpc "github.com/beneath-core/gateway/grpc"
Expand Down
2 changes: 1 addition & 1 deletion control/auth/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"

"github.com/go-chi/chi"
"github.com/markbates/goth/gothic"
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/billed_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
uuid "github.com/satori/go.uuid"
"github.com/vektah/gqlparser/gqlerror"
)
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/mathutil"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/metrics"
)
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
)

// Model returns the gql.ModelResolver
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/organization.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
uuid "github.com/satori/go.uuid"
"github.com/vektah/gqlparser/gqlerror"
)
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package resolver
import (
"context"

"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/secret.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
)

// ServiceSecret returns the gql.ServiceSecretResolver
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
uuid "github.com/satori/go.uuid"
"github.com/vektah/gqlparser/gqlerror"
)
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
)

// Stream returns the gql.StreamResolver
Expand Down
2 changes: 1 addition & 1 deletion control/resolver/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/beneath-core/control/entity"
"github.com/beneath-core/control/gql"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/metrics"
uuid "github.com/satori/go.uuid"
)
Expand Down
4 changes: 2 additions & 2 deletions control/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/beneath-core/pkg/envutil"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/pkg/segment"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/internal/segment"
"github.com/beneath-core/db"
"github.com/beneath-core/payments"

Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/get_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
pb "github.com/beneath-core/gateway/grpc/proto"
uuid "github.com/satori/go.uuid"
"google.golang.org/grpc"
Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/ping.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/grpc"
"google.golang.org/grpc/codes"

"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
pb "github.com/beneath-core/gateway/grpc/proto"
)

Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"google.golang.org/grpc/status"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/queryparse"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/db"
Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
grpc_auth "github.com/grpc-ecosystem/go-grpc-middleware/auth"
"google.golang.org/grpc"

"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
pb "github.com/beneath-core/gateway/grpc/proto"

// see https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#using-a-compressor
Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"google.golang.org/grpc/status"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/gateway"
"github.com/beneath-core/gateway/subscriptions"
pb "github.com/beneath-core/gateway/grpc/proto"
Expand Down
2 changes: 1 addition & 1 deletion gateway/grpc/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"google.golang.org/grpc/status"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/db"
"github.com/beneath-core/engine"
Expand Down
2 changes: 1 addition & 1 deletion gateway/http/get_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/jsonutil"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
)

func getStreamDetails(w http.ResponseWriter, r *http.Request) error {
Expand Down
2 changes: 1 addition & 1 deletion gateway/http/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/jsonutil"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/db"
"github.com/beneath-core/gateway"
Expand Down
2 changes: 1 addition & 1 deletion gateway/http/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/ws"
"github.com/beneath-core/db"
)
Expand Down
2 changes: 1 addition & 1 deletion gateway/http/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/jsonutil"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/db"
"github.com/beneath-core/engine"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"google.golang.org/grpc/peer"
"google.golang.org/grpc/status"

"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/db"
"github.com/beneath-core/pkg/httputil"
)

var (
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pkg/segment/segment.go → internal/segment/segment.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
uuid "github.com/satori/go.uuid"
analytics "gopkg.in/segmentio/analytics-go.v3"

"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
)

// Client enables us to send data to Segment
Expand Down
2 changes: 1 addition & 1 deletion payments/driver/anarchism/anarchism.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/beneath-core/pkg/envutil"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/payments/driver"
uuid "github.com/satori/go.uuid"
)
Expand Down
2 changes: 1 addition & 1 deletion payments/driver/stripecard/stripecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/jsonutil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/payments/driver"
"github.com/beneath-core/payments/driver/stripeutil"
uuid "github.com/satori/go.uuid"
Expand Down
2 changes: 1 addition & 1 deletion payments/driver/stripewire/stripewire.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/beneath-core/pkg/envutil"
"github.com/beneath-core/pkg/httputil"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/middleware"
"github.com/beneath-core/internal/middleware"
"github.com/beneath-core/payments/driver"
"github.com/beneath-core/payments/driver/stripeutil"
uuid "github.com/satori/go.uuid"
Expand Down
4 changes: 2 additions & 2 deletions pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ import (
"golang.org/x/sync/errgroup"

"github.com/beneath-core/control/entity"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/timeutil"
"github.com/beneath-core/db"
"github.com/beneath-core/engine/driver"
pb "github.com/beneath-core/engine/proto"
pbgw "github.com/beneath-core/gateway/grpc/proto"
"github.com/beneath-core/pkg/log"
"github.com/beneath-core/pkg/timeutil"
)

const (
Expand Down

0 comments on commit 7a5574c

Please sign in to comment.