toolbox

package
v0.45.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

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 endpoint.

func New

func New[T api.Entity, K api.Entity, V databaseModel.Query](service apiInterface.Service[T, K, V], rbac rbac.RBAC, kind v1.Kind, caseSensitive bool) Toolbox[T, V]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL