homebox/backend/internal/web/adapters/adapters.go

11 lines
205 B
Go
Raw Permalink Normal View History

package adapters
import (
"net/http"
"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)