Documentation ¶
Index ¶
- type ActivityBody
- type ActivityBodyAdd
- type ActivityBodyDelete
- type ControllerActivity
- func (a *ControllerActivity) ActionAdd(c *gin.Context)
- func (a *ControllerActivity) ActionDelete(c *gin.Context)
- func (a *ControllerActivity) ActionStart(c *gin.Context)
- func (a *ControllerActivity) ActionStatus(c *gin.Context)
- func (a *ControllerActivity) ActionStop(c *gin.Context)
- func (a *ControllerActivity) ActionStopAll(c *gin.Context)
- func (a *ControllerActivity) RegisterActions(r *gin.Engine)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityBody ¶
type ActivityBody struct {
ActivityID uint64 `form:"activity_id" validate:"required" json:"activity_id" binding:"required"`
}
type ActivityBodyAdd ¶
type ActivityBodyAdd struct { ActivityBody RedisServerIndex *uint8 `form:"redis_server_index" json:"redis_server_index" default:"0"` // 指针表示可以不提供,不提供时按默认值default。 }
type ActivityBodyDelete ¶
type ActivityBodyDelete struct { ActivityBody StopBeforeRemoving bool `form:"stop_before_removing" json:"stop_before_removing,omitempty" default:"false"` }
type ControllerActivity ¶
type ControllerActivity struct {
controller.GenericController
}
func (*ControllerActivity) ActionAdd ¶
func (a *ControllerActivity) ActionAdd(c *gin.Context)
func (*ControllerActivity) ActionDelete ¶
func (a *ControllerActivity) ActionDelete(c *gin.Context)
func (*ControllerActivity) ActionStart ¶
func (a *ControllerActivity) ActionStart(c *gin.Context)
func (*ControllerActivity) ActionStatus ¶
func (a *ControllerActivity) ActionStatus(c *gin.Context)
func (*ControllerActivity) ActionStop ¶
func (a *ControllerActivity) ActionStop(c *gin.Context)
func (*ControllerActivity) ActionStopAll ¶
func (a *ControllerActivity) ActionStopAll(c *gin.Context)
func (*ControllerActivity) RegisterActions ¶
func (a *ControllerActivity) RegisterActions(r *gin.Engine)
Click to show internal directories.
Click to hide internal directories.