response

package
v0.0.0-...-9ff4ced Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func File

func File(c *gin.Context, fileName string, dataBytes []byte)

func Message

func Message(ctx *gin.Context, timeSource *timesource.Source, message string, code int, data any) error

Types

type HttpResponse

type HttpResponse struct {
	Time    string `json:"time"`
	Status  int    `json:"status"`
	Error   bool   `json:"error"`
	Path    string `json:"path"`
	Message string `json:"message"`
	Data    any    `json:"data"`
}

Jump to

Keyboard shortcuts

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