v1

package
v0.0.0-...-5fda629 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MulanPSL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddResource

func AddResource(c *gin.Context)

func DeleteResource

func DeleteResource(c *gin.Context)

func DeleteResources

func DeleteResources(c *gin.Context)

func DisConnect

func DisConnect(c *gin.Context)

func GetAtlasMap

func GetAtlasMap(c *gin.Context)

func GetDeviceInfo

func GetDeviceInfo(c *gin.Context)

func GetDeviceInfos

func GetDeviceInfos(c *gin.Context)

func GetOtypeDropdownList

func GetOtypeDropdownList(c *gin.Context)

func GetRelationGraph

func GetRelationGraph(c *gin.Context)

func GetRelationMap

func GetRelationMap(c *gin.Context)

func GetRelationResources

func GetRelationResources(c *gin.Context)

func GetResourcesByCity

func GetResourcesByCity(c *gin.Context)

func GetStatisticDropdownList

func GetStatisticDropdownList(c *gin.Context)

func GetSunburstMap

func GetSunburstMap(c *gin.Context)

func GetTagGroupInfos

func GetTagGroupInfos(c *gin.Context)

func GetUtilizationInfo

func GetUtilizationInfo(c *gin.Context)

func InsertTestData

func InsertTestData(c *gin.Context)

func ReConnect

func ReConnect(c *gin.Context)

func RenewalResource

func RenewalResource(c *gin.Context)

心跳功能(webSocket请求ping,返回pong)

func SDel

func SDel(c *gin.Context)

func SGet

func SGet(c *gin.Context)

func SSet

func SSet(c *gin.Context)

func SearchResources

func SearchResources(c *gin.Context)

func SearchResourcesByType

func SearchResourcesByType(c *gin.Context)

Types

type AddResourceForm

type AddResourceForm struct {
	Description string `form:"description" valid:"Required;MaxSize(100)"`
	Status      int    `form:"status" valid:"Range(0,1)"`
	Area        string `form:"area" valid:"Required;MaxSize(100)"`
	DependNode  string `form:"dependNode" valid:"Required;MaxSize(100)"`
	OType       int    `form:"dependNode" valid:"Range(0,1)"`
	IsMonitor   int    `form:"isMonitor"`
	IsControl   int    `form:"isControl"`
	//AutoRemove  int                    `form:"autoRemove"`
	Utilization int                    `form:"utilization" valid:"Range(0,100)"`
	Tags        []resource_service.Tag `form:"tags"`
}

type ConnectForm

type ConnectForm struct {
	GuId string `form:"guId" valid:"Required;MaxSize(100)"`
}

type DeleteResourcesForm

type DeleteResourcesForm struct {
	GuIds []string `form:"guIds" valid:"Required;MaxSize(1000)"`
}

type KVResource

type KVResource struct {
	Key   string `form:"key" json:"key" binding:"required"`
	Value string `form:"value" json:"value" binding:"required"`
}

type TagGroupForm

type TagGroupForm struct {
	OType  int                  `form:"oType" valid:"Range(1,9)"`
	Status int                  `form:"status" valid:"Range(1,2)"`
	Tag    resource_service.Tag `form:"tag" valid:"Required;MaxSize(100)"`
}

Jump to

Keyboard shortcuts

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