resource

package
v0.0.0-...-f11c6e4 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterRouter

func RegisterRouter(Router *gin.RouterGroup)

func ResourceAlloc

func ResourceAlloc(context *gin.Context)

func ResourceAllocWs

func ResourceAllocWs(c *gin.Context)

func ResourceDetailView

func ResourceDetailView(context *gin.Context)

func ResourceRegisterView

func ResourceRegisterView(context *gin.Context)

Types

type ResourceAllocSerializer

type ResourceAllocSerializer struct {
	ResourceName string `json:"resource_name" binding:"required"`
	Value        uint   `json:"value"`
}

type ResourceRegisterSerializer

type ResourceRegisterSerializer struct {
	ResourceName string `json:"resource_name" binding:"required"`
}

Jump to

Keyboard shortcuts

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