Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CmdController ¶
type CmdController struct {
RootController `path:"/cmds"`
GetCmdByID gin.HandlerFunc `path:"/:id"`
PostExecuteCmd gin.HandlerFunc `path:"/"`
// contains filtered or unexported fields
}
func NewCmdController ¶
func NewCmdController(router *gin.Engine) *CmdController
NewCmdController create new instance of CmdController
func (*CmdController) GetCmdByIDImpl ¶
func (c *CmdController) GetCmdByIDImpl(context *gin.Context)
GetCmdByIDImpl http get to get detail of cmd by id
func (*CmdController) PostExecuteCmdImpl ¶
func (c *CmdController) PostExecuteCmdImpl(context *gin.Context)
PostExecuteCmdImpl http post request to execute cmd from request body
type HealthController ¶
type HealthController struct {
RootController `path:"/health"`
GetInfo gin.HandlerFunc `path:"/"`
}
func NewHealthController ¶
func NewHealthController(router *gin.Engine) *HealthController
NewHealthController create new instance of HealthController
func (*HealthController) GetInfoImpl ¶
func (c *HealthController) GetInfoImpl(context *gin.Context)
type HealthInfo ¶
type ResponseMessage ¶
type ResponseMessage struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
ResponseMessage the response body
Click to show internal directories.
Click to hide internal directories.