types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 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 APIErrorResponse

type APIErrorResponse struct {
	// Message is the message that describes the error
	Message string `json:"message"`

	// Status is the status code of the response
	Status int `json:"status"`
}

type APISuccessResponse

type APISuccessResponse[T any] struct {
	// Data is the data returned by the API
	Data T `json:"data"`

	// Status is the status code of the response
	Status int `json:"status"`
}

Jump to

Keyboard shortcuts

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