mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-04 09:38:36 +00:00
fix linter/test errors
This commit is contained in:
parent
0c968de1fb
commit
d7fd68765a
40 changed files with 207 additions and 212 deletions
|
@ -6,5 +6,7 @@ import (
|
|||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type AdapterFunc[T any, Y any] func(*http.Request, T) (Y, error)
|
||||
type IDFunc[T any, Y any] func(*http.Request, uuid.UUID, T) (Y, error)
|
||||
type (
|
||||
AdapterFunc[T any, Y any] func(*http.Request, T) (Y, error)
|
||||
IDFunc[T any, Y any] func(*http.Request, uuid.UUID, T) (Y, error)
|
||||
)
|
||||
|
|
|
@ -8,8 +8,10 @@ import (
|
|||
"github.com/hay-kot/httpkit/server"
|
||||
)
|
||||
|
||||
type CommandFunc[T any] func(*http.Request) (T, error)
|
||||
type CommandIDFunc[T any] func(*http.Request, uuid.UUID) (T, error)
|
||||
type (
|
||||
CommandFunc[T any] func(*http.Request) (T, error)
|
||||
CommandIDFunc[T any] func(*http.Request, uuid.UUID) (T, error)
|
||||
)
|
||||
|
||||
// Command is an HandlerAdapter that returns a errchain.HandlerFunc that
|
||||
// The command adapters are used to handle commands that do not accept a body
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue