helper

package
v0.0.0-...-29094d0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPointer

func BoolPointer(b bool) *bool

func BuildJsonResponse

func BuildJsonResponse(e echo.Context, http_status int, data any, err []web.ErrorResponse) error

func CommitOrRollback

func CommitOrRollback(tx *gorm.DB)

func ConvertListTodoToGraphTodo

func ConvertListTodoToGraphTodo(todo *[]model.Todo) (gTodo []*gModel.Todo)

func ConvertTodoToGraphTodo

func ConvertTodoToGraphTodo(todo *model.Todo) (gTodo *gModel.Todo)

func CreateErrorResponse

func CreateErrorResponse(title string, message ...string) web.ErrorResponse

func CreateValidationErrorResponse

func CreateValidationErrorResponse(validatorError error) (sliceErrorResponse []web.ErrorResponse)

func PanicIfError

func PanicIfError(err error)

func StartTransaction

func StartTransaction(inputtx *gorm.DB) (tx *gorm.DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

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