response

package
v1.0.52 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 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"`
	Resp    *Status     `json:"resp,omitempty"`
	Error   error       `json:"error,omitempty"`
	Site    string
}

func NewResponse added in v1.0.34

func NewResponse(status int, message string, data interface{}) Response

type Route added in v1.0.6

type Route struct {
	Routes []string `json:"routes"`
}

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
	NameInUse
	NumberAndVersionAlreadyExists
	BudgetInUse
	AmountNotNull
	BusinessClosedOrLost
	ActiveStageInBusiness
	ActivePipelineInBusiness
	DontHaveLineAndPipeline
	DontHaveLine
	DontHavePipeline
	DontHaveAccountOwner
	AnotherEditionIsActive
	FirstCreateASchedule
	Authorized
	AccreditationInUse
	ContactDataAlreadyExists
	ContactDataDoesntExist
	EmailAlreadyExists
	DoesntMatch
	UserDoesntExist
	Found
	NothingToUpdate
	EmailDoesntExist
	SuccessfulLogin
	InvalidNameFormat
	InvalidLastNameFormat
	InvalidEmailFormat
	ErrorGeneratingUuid
	WrongType
	GRPCClientsError
	GRPCServerError
	NoBudgetProperties
	NoProfileProperties
	NoBusinessProperties
	NoEditableCounterpartProps
	WrongProperties
	WrongTypeOfProperties
	WithoutCondition
	OnePropertyByStage
	PermissionDenied
	BusinessNotInProgress
)

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