Documentation ¶
Index ¶
- func BoolPointer(b bool) *bool
- func BuildJsonResponse(e echo.Context, http_status int, data any, err []web.ErrorResponse) error
- func CommitOrRollback(tx *gorm.DB)
- func ConvertListTodoToGraphTodo(todo *[]model.Todo) (gTodo []*gModel.Todo)
- func ConvertTodoToGraphTodo(todo *model.Todo) (gTodo *gModel.Todo)
- func CreateErrorResponse(title string, message ...string) web.ErrorResponse
- func CreateValidationErrorResponse(validatorError error) (sliceErrorResponse []web.ErrorResponse)
- func PanicIfError(err error)
- func StartTransaction(inputtx *gorm.DB) (tx *gorm.DB)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointer ¶
func BuildJsonResponse ¶
func BuildJsonResponse(e echo.Context, http_status int, data any, err []web.ErrorResponse) error
func CommitOrRollback ¶
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)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.