helpers

package
v0.0.0-...-392db30 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespondWithError

func RespondWithError(c *gin.Context, err error, statusCode int)

func RespondWithString

func RespondWithString(c *gin.Context, message string, statusCode int)

Types

type Empty

type Empty struct {
}

type Error

type Error struct {
	Error string `json:"error" example:"a server error was encountered"`
}

type ErrorsArray

type ErrorsArray struct {
	Errors []string `json:"errors" example:"cannot ping database,scheduler offline"`
}

type Message

type Message struct {
	Message string `json:"message" example:"i just wanted to say hi"`
}

Jump to

Keyboard shortcuts

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