responses

package
v0.0.0-alpha3 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPErrorResponse

type HTTPErrorResponse struct {
	Errors interface{} `json:"errors"`
}

HTTPErrorResponse -

func ValidationResponse

func ValidationResponse(data interface{}) HTTPErrorResponse

ValidationResponse -

type HTTPSuccessResponse

type HTTPSuccessResponse struct {
	Data interface{} `json:"data"`
}

HTTPSuccessResponse -

func SuccessResponse

func SuccessResponse(data interface{}) HTTPSuccessResponse

SuccessResponse -

type Message

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

Message -

func MResponse

func MResponse(message string) Message

MResponse -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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