operations

package
v0.0.0-...-fe89582 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActualizaMensajes

func ActualizaMensajes(w http.ResponseWriter, r *http.Request)

func AniadeMultas

func AniadeMultas(w http.ResponseWriter, r *http.Request)

func CalculaTotalCasa

func CalculaTotalCasa(w http.ResponseWriter, r *http.Request)

func CambiaDebe

func CambiaDebe(w http.ResponseWriter, r *http.Request)

func CreaCasa

func CreaCasa(w http.ResponseWriter, r *http.Request)

func CreaMensaje

func CreaMensaje(w http.ResponseWriter, r *http.Request)

func GetCasa

func GetCasa(w http.ResponseWriter, r *http.Request)

func GetMensaje

func GetMensaje(w http.ResponseWriter, r *http.Request)

func GetMensajes

func GetMensajes(w http.ResponseWriter, r *http.Request)

func GetTodos

func GetTodos(w http.ResponseWriter, r *http.Request)

func Pagar

func Pagar(w http.ResponseWriter, r *http.Request)

func ResponseWriter

func ResponseWriter(res http.ResponseWriter, statusCode int, message string, data interface{}) error

Types

type Response

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

Response is the http json response schema

func NewResponse

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

NewResponse is the Response struct factory function.

Jump to

Keyboard shortcuts

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