Documentation
¶
Index ¶
- func Create(c *gin.Context, in *CreateRequest)
- func Delete(c *gin.Context, in *DeleteRequest)
- func Detail(c *gin.Context, in *DetailRequest)
- func List(c *gin.Context)
- func Update(c *gin.Context, in *UpdateRequest)
- type CreateRequest
- type DeleteRequest
- type DetailRequest
- type DetailResponse
- type ListRequest
- type ListResponse
- type NodeDetailItem
- type NodeItem
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateRequest ¶
type CreateRequest struct {
Name string `json:"name" binding:"required"`
Address string `json:"address" binding:"required"`
SecretKey string `json:"secret_key" binding:"required"`
Enabled *bool `json:"enabled"`
}
CreateRequest 创建节点请求
type DeleteRequest ¶
type DeleteRequest struct {
Uuid string `json:"uuid" binding:"required"`
}
DeleteRequest 删除节点请求
type DetailRequest ¶
type DetailRequest struct {
Uuid string `json:"uuid" binding:"required"`
}
DetailRequest 节点详情请求
type NodeDetailItem ¶
type NodeDetailItem struct {
Uuid string `json:"uuid"`
Name string `json:"name"`
Address string `json:"address"`
SecretKey string `json:"secret_key"`
Enabled bool `json:"enabled"`
IsLocal bool `json:"is_local"`
CreatedAt int64 `json:"created_at"`
UpdatedAt int64 `json:"updated_at"`
}
NodeDetailItem 节点详情项(含密钥,仅超管可查看)
Click to show internal directories.
Click to hide internal directories.