controller

package
v0.0.0-...-f0fce53 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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)

type ListFilter

type ListFilter func(*gin.Context, []core.ApiObject) []core.ApiObject

type Response

type Response struct {
	OpCode int         `json:"OpCode"`
	OpDesc string      `json:"OpDesc"`
	Data   interface{} `json:"Data"`
}

Jump to

Keyboard shortcuts

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