responsekit

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSuccess

func DeleteSuccess(ctx echo.Context, id int64) error

DeleteSuccess is response for delete success

func InsertSuccess

func InsertSuccess(ctx echo.Context, lastInsertID int64) error

InsertSuccess is response for insert success

func InvalidID

func InvalidID(ctx echo.Context, err error) error

InvalidID is response for invalid ID

func InvalidRequest

func InvalidRequest(ctx echo.Context, err error) error

InvalidRequest is response for invalid request

func NotFound

func NotFound(ctx echo.Context, id int64) error

NotFound is response for not found

func UpdateSuccess

func UpdateSuccess(ctx echo.Context, id int64) error

UpdateSuccess is response for update success

Types

type Message

type Message struct {
	Message string `json:"message"`
}

Message is general response

Jump to

Keyboard shortcuts

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