echohandler

package
v0.1.4-dev Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeletedObjectHandler

func DeletedObjectHandler[T any](db *gorm.DB) echo.MiddlewareFunc

func GetObjectFromEchoContext

func GetObjectFromEchoContext[T any](c echo.Context) *T

func ListAnyObjects

func ListAnyObjects(db *gorm.DB, c echo.Context, tableName string, handleFuncs map[string]search.SearchDataHandleFunc) ([]map[string]any, int64, error)

func ListDeletedObjects

func ListDeletedObjects[T any](db *gorm.DB, c echo.Context, selectNames []string, handleFuncs map[string]search.SearchDataHandleFunc) ([]T, int64, error)

func ListObjects

func ListObjects[T any](db *gorm.DB, c echo.Context, selectNames []string, handleFuncs map[string]search.SearchDataHandleFunc) ([]T, int64, error)

func ObjectHandler

func ObjectHandler[T any](db *gorm.DB) echo.MiddlewareFunc

func TSObjectHandler

func TSObjectHandler[T any](db *gorm.DB) echo.MiddlewareFunc

Types

This section is empty.

Jump to

Keyboard shortcuts

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