mirror of
https://github.com/hay-kot/homebox.git
synced 2024-11-24 17:45:41 +00:00
12 lines
211 B
Go
12 lines
211 B
Go
package adapters
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
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)
|
|
)
|