response

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2023 License: GPL-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 Response

type Response struct {
	Status  int         `json:"status"`
	Message string      `json:"message"`
	Data    interface{} `json:"data"`
}

type Status

type Status int
const (
	InternalServerError Status = iota
	DBQueryError
	DBExecutionError
	DBRowsError
	DBScanError
	LastRowIdError
	SuccessfulCreation
	SuccessfulSearch
	SuccessfulDeletion
	SuccessfulUpdate
	CreationFailure
	BadRequest
	Unknown
	ErrorMappingData
	NothingToDelete
	NotFound
	Conflict
	Unauthorized
	RequestEntityTooLarge
	UnsupportedMediaType
	NoResults
	DBInitError
	DBRowsAffectedError
	DecodeError
	BuilderResponseError
	NoContent
	NoRowsAffected
	UpdateFailure
	FormatInvalid
	ItemAlreadyShared
	LineHasReferences
	ItemIsInterested
)

LOS STATUS DEBEN MANTENER SU ORDEN. LOS NUEVOS DEBEN SER AGREGADOS AL FINAL

func (Status) Index

func (s Status) Index() int

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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