package
Version:
v0.0.0-...-d6725e5
Opens a new window with list of versions in this module.
Published: May 3, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BadRequestResponse struct {
Code int `json:"code" default:"400"`
Body string `json:"body"`
}
type InternalServerErrorResponse struct {
Code int `json:"code" default:"500"`
Body string `json:"body"`
}
type NotFoundResponse struct {
Code int `json:"code" default:"404"`
Body string `json:"body"`
}
type Response[T any] struct {
Code int `json:"code" default:"200"`
Body T `json:"body"`
}
type UnauthorizedResponse struct {
Code int `json:"code" default:"401"`
Body string `json:"body"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.