mirror of
https://github.com/hay-kot/homebox.git
synced 2024-12-03 05:55: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)
|
|
)
|