response

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOptions

func CreateOptions(options ...string) gin.HandlerFunc

func HandleError

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

func NotImplemented

func NotImplemented(c *gin.Context)

Types

type Empty

type Empty struct {
}

type Error

type Error struct {
	Error *pufferpanel.Error `json:"error"`
}

type Metadata

type Metadata struct {
	Paging *Paging `json:"paging"`
}

type Paging

type Paging struct {
	Page    uint  `json:"page"`
	Size    uint  `json:"pageSize"`
	MaxSize uint  `json:"maxSize"`
	Total   int64 `json:"total"`
}

Jump to

Keyboard shortcuts

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