controllerActivity

package
v0.0.0-...-61a2f33 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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