response

package
v0.0.0-...-ca80d37 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaptureError

type CaptureError struct {
	Message string `json:"message"`
	Details string `json:"details"`
}

type Response

type Response struct {
	Status  int            `json:"status"`
	Message string         `json:"message"`
	Data    interface{}    `json:"data,omitempty"`
	Errors  []CaptureError `json:"errors,omitempty"`
}

func NewResponse

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

func NewResponseError

func NewResponseError(statusCode int, details string) Response

Jump to

Keyboard shortcuts

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