Skip to content

Commit

Permalink
make the handlers package internal
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch committed Oct 2, 2024
1 parent 83c2c9e commit 9e0c593
Show file tree
Hide file tree
Showing 12 changed files with 11 additions and 10 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion nitric/apis/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"path"
"strings"

"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/internal/handlers"
resources "github.com/nitrictech/go-sdk/nitric/resource"
"github.com/nitrictech/go-sdk/nitric/workers"
resourcev1 "github.com/nitrictech/nitric/core/pkg/proto/resources/v1"
Expand Down Expand Up @@ -47,6 +47,7 @@ type Route interface {
ApiName() string
}

type Handler = handlers.Handler[Ctx]
type Middleware = handlers.Middleware[Ctx]

type route struct {
Expand Down
2 changes: 1 addition & 1 deletion nitric/apis/workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"io"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/errors"
"github.com/nitrictech/go-sdk/nitric/errors/codes"
"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/nitric/workers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/apis/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion nitric/schedules/schedule.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package schedules
import (
"strings"

"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/workers"
schedulespb "github.com/nitrictech/nitric/core/pkg/proto/schedules/v1"
)
Expand Down
2 changes: 1 addition & 1 deletion nitric/schedules/schedule_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"io"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/errors"
"github.com/nitrictech/go-sdk/nitric/errors/codes"
"github.com/nitrictech/go-sdk/nitric/handlers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/schedules/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion nitric/storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"fmt"
"strings"

"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/workers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/resources/v1"
storagepb "github.com/nitrictech/nitric/core/pkg/proto/storage/v1"
Expand Down
2 changes: 1 addition & 1 deletion nitric/storage/bucket_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"io"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/errors"
"github.com/nitrictech/go-sdk/nitric/errors/codes"
"github.com/nitrictech/go-sdk/nitric/handlers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/storage/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion nitric/topics/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package topics
import (
"fmt"

"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/workers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/resources/v1"
topicspb "github.com/nitrictech/nitric/core/pkg/proto/topics/v1"
Expand Down
2 changes: 1 addition & 1 deletion nitric/topics/topic_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import (
errorsstd "errors"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/errors"
"github.com/nitrictech/go-sdk/nitric/errors/codes"
"github.com/nitrictech/go-sdk/nitric/handlers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/topics/v1"
)

Expand Down
2 changes: 1 addition & 1 deletion nitric/websockets/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"strings"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/nitric/handlers"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/workers"
resourcesv1 "github.com/nitrictech/nitric/core/pkg/proto/resources/v1"
websocketsv1 "github.com/nitrictech/nitric/core/pkg/proto/websockets/v1"
Expand Down
2 changes: 1 addition & 1 deletion nitric/websockets/websocket_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"io"

grpcx "github.com/nitrictech/go-sdk/internal/grpc"
"github.com/nitrictech/go-sdk/internal/handlers"
"github.com/nitrictech/go-sdk/nitric/errors"
"github.com/nitrictech/go-sdk/nitric/errors/codes"
"github.com/nitrictech/go-sdk/nitric/handlers"
v1 "github.com/nitrictech/nitric/core/pkg/proto/websockets/v1"
)

Expand Down

0 comments on commit 9e0c593

Please sign in to comment.