Documentation ¶
Index ¶
- type BaseController
- func (c *BaseController) Create(ctx *gin.Context)
- func (c *BaseController) Delete(ctx *gin.Context)
- func (c *BaseController) DeleteRevision(ctx *gin.Context)
- func (c *BaseController) Get(ctx *gin.Context)
- func (c *BaseController) GetRevision(ctx *gin.Context)
- func (c *BaseController) List(ctx *gin.Context, filts ...ListFilter)
- func (c *BaseController) ListRevisions(ctx *gin.Context)
- func (c *BaseController) PutRevision(ctx *gin.Context)
- func (c *BaseController) Response(ctx *gin.Context, httpCode, opCode int, opMsg string, data interface{})
- func (c *BaseController) SetRevisioner(revisioner registry.Revisioner)
- func (c *BaseController) Update(ctx *gin.Context)
- type ListFilter
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(registry registry.ApiObjectRegistry) BaseController
func (*BaseController) Create ¶
func (c *BaseController) Create(ctx *gin.Context)
func (*BaseController) Delete ¶
func (c *BaseController) Delete(ctx *gin.Context)
func (*BaseController) DeleteRevision ¶
func (c *BaseController) DeleteRevision(ctx *gin.Context)
func (*BaseController) Get ¶
func (c *BaseController) Get(ctx *gin.Context)
func (*BaseController) GetRevision ¶
func (c *BaseController) GetRevision(ctx *gin.Context)
func (*BaseController) List ¶
func (c *BaseController) List(ctx *gin.Context, filts ...ListFilter)
func (*BaseController) ListRevisions ¶
func (c *BaseController) ListRevisions(ctx *gin.Context)
func (*BaseController) PutRevision ¶
func (c *BaseController) PutRevision(ctx *gin.Context)
func (*BaseController) Response ¶
func (c *BaseController) Response(ctx *gin.Context, httpCode, opCode int, opMsg string, data interface{})
func (*BaseController) SetRevisioner ¶
func (c *BaseController) SetRevisioner(revisioner registry.Revisioner)
func (*BaseController) Update ¶
func (c *BaseController) Update(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.