response

package
v0.0.0-...-b665e70 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusOk    = "Ok"
	StatusError = "Error"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Status string `json:"status"` // Error | Ok
	Error  string `json:"error,omitempty"`
}

func Error

func Error(msg string) Response

func Ok

func Ok() Response

func ValidationError

func ValidationError(errs validator.ValidationErrors) Response

Jump to

Keyboard shortcuts

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