mirror of
https://github.com/hay-kot/homebox.git
synced 2025-02-23 04:39:01 +00:00
11 lines
299 B
Go
11 lines
299 B
Go
// Package adapters provides functions to adapt functions to the server.Handler interface.
|
|
package adapters
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/google/uuid"
|
|
)
|
|
|
|
type AdapterFunc[T any, Y any] func(context.Context, T) (Y, error)
|
|
type IDFunc[T any, Y any] func(context.Context, uuid.UUID, T) (Y, error)
|