Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractParameters ¶
func ExtractParameters(ctx echo.Context, caseSensitive bool) apiInterface.Parameters
Types ¶
type Toolbox ¶
type Toolbox[T api.Entity, K databaseModel.Query] interface { Create(ctx echo.Context, entity T) error Update(ctx echo.Context, entity T) error Delete(ctx echo.Context) error Get(ctx echo.Context) error List(ctx echo.Context, q K) error }
Toolbox is an interface that defines the different methods that can be used in the different endpoint of the API. This is a way to align the code of the different endpoints.
func New ¶
func New[T api.Entity, K api.Entity, V databaseModel.Query](service apiInterface.Service[T, K, V], authz authorization.Authorization, kind v1.Kind, caseSensitive bool) Toolbox[T, V]
Click to show internal directories.
Click to hide internal directories.