change safeserve -> httpkit (#405)

This commit is contained in:
Hayden 2023-04-09 10:39:43 -08:00 committed by GitHub
parent c36b9dcf5d
commit 64b3ac3e94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 40 additions and 40 deletions

View file

@ -3,8 +3,8 @@ package adapters
import (
"net/http"
"github.com/hay-kot/safeserve/errchain"
"github.com/hay-kot/safeserve/server"
"github.com/hay-kot/httpkit/errchain"
"github.com/hay-kot/httpkit/server"
)
// Action is a function that adapts a function to the server.Handler interface.

View file

@ -4,8 +4,8 @@ import (
"net/http"
"github.com/google/uuid"
"github.com/hay-kot/safeserve/errchain"
"github.com/hay-kot/safeserve/server"
"github.com/hay-kot/httpkit/errchain"
"github.com/hay-kot/httpkit/server"
)
type CommandFunc[T any] func(*http.Request) (T, error)

View file

@ -9,7 +9,7 @@ import (
"github.com/google/uuid"
"github.com/gorilla/schema"
"github.com/hay-kot/homebox/backend/internal/sys/validate"
"github.com/hay-kot/safeserve/server"
"github.com/hay-kot/httpkit/server"
)
var queryDecoder = schema.NewDecoder()

View file

@ -3,8 +3,8 @@ package adapters
import (
"net/http"
"github.com/hay-kot/safeserve/errchain"
"github.com/hay-kot/safeserve/server"
"github.com/hay-kot/httpkit/errchain"
"github.com/hay-kot/httpkit/server"
)
// Query is a server.Handler that decodes a query from the request and calls the provided function.