bodies

package
v0.0.1-dev-c122278 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Code   = "code"
	Status = "status"
	Msg    = "msg"
	Data   = "data"
)

Variables

This section is empty.

Functions

func ParseReq

func ParseReq(c *gin.Context) []byte

func SetAccepted

func SetAccepted(c *gin.Context, msg string)

func SetBadRequest

func SetBadRequest(c *gin.Context, err error)

func SetConflict

func SetConflict(c *gin.Context, err error)

func SetCreated

func SetCreated(c *gin.Context, msg string, data any)

func SetInternalServerError

func SetInternalServerError(c *gin.Context, err error)

func SetNotFound

func SetNotFound(c *gin.Context, err error)

func SetOk

func SetOk(c *gin.Context, msg string, data any)

func SetRedirect

func SetRedirect(c *gin.Context, redirectUrl string)

func SetUnauthorized

func SetUnauthorized(c *gin.Context, err error)

Types

type ComputeStatistic

type ComputeStatistic struct {
	Code   int            `json:"code"`
	Status string         `json:"status"`
	Msg    string         `json:"msg"`
	Data   metric.Compute `json:"data"`
}

type Node

type Node struct {
	Code   int        `json:"code"`
	Status string     `json:"status"`
	Msg    string     `json:"msg"`
	Data   nodes.Node `json:"data"`
}

type SpaceStatistic

type SpaceStatistic struct {
	Code   int          `json:"code"`
	Status string       `json:"status"`
	Msg    string       `json:"msg"`
	Data   metric.Space `json:"data"`
}

type SupportFileList

type SupportFileList struct {
	Code   int            `json:"code"`
	Status string         `json:"status"`
	Msg    string         `json:"msg"`
	Data   []support.File `json:"data"`
}

type TuningList

type TuningList struct {
	Code   int    `json:"code"`
	Status string `json:"status"`
	Msg    string `json:"msg"`
	Data   tuning `json:"data"`
}

Jump to

Keyboard shortcuts

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