Documentation
¶
Overview ¶
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
generated code - do not edit
Index ¶
- func Register(r *gin.Engine)
- type CheckboxID
- type CheckboxInput
- type Controller
- func (controller *Controller) AddBackRepo(backRepo *slider_orm.BackRepoStruct, stackPath string)
- func (controller *Controller) DeleteCheckbox(c *gin.Context)
- func (controller *Controller) DeleteGroup(c *gin.Context)
- func (controller *Controller) DeleteLayout(c *gin.Context)
- func (controller *Controller) DeleteSlider(c *gin.Context)
- func (controller *Controller) GetCheckbox(c *gin.Context)
- func (controller *Controller) GetCheckboxs(c *gin.Context)
- func (controller *Controller) GetGroup(c *gin.Context)
- func (controller *Controller) GetGroups(c *gin.Context)
- func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)
- func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)
- func (controller *Controller) GetLayout(c *gin.Context)
- func (controller *Controller) GetLayouts(c *gin.Context)
- func (controller *Controller) GetSlider(c *gin.Context)
- func (controller *Controller) GetSliders(c *gin.Context)
- func (controller *Controller) PostCheckbox(c *gin.Context)
- func (controller *Controller) PostGroup(c *gin.Context)
- func (controller *Controller) PostLayout(c *gin.Context)
- func (controller *Controller) PostSlider(c *gin.Context)
- func (controller *Controller) UpdateCheckbox(c *gin.Context)
- func (controller *Controller) UpdateGroup(c *gin.Context)
- func (controller *Controller) UpdateLayout(c *gin.Context)
- func (controller *Controller) UpdateSlider(c *gin.Context)
- type GenericError
- type GroupID
- type GroupInput
- type LayoutID
- type LayoutInput
- type SliderID
- type SliderInput
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CheckboxID ¶
type CheckboxID struct { // The ID of the order // // in: path // required: true ID int64 }
An CheckboxID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getCheckbox updateCheckbox deleteCheckbox
type CheckboxInput ¶
type CheckboxInput struct { // The Checkbox to submit or modify // in: body Checkbox *orm.CheckboxAPI }
CheckboxInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postCheckbox updateCheckbox
type Controller ¶
type Controller struct { // Map_BackRepos is the map to the backRepo instance according to the stack instance path Map_BackRepos map[string]*slider_orm.BackRepoStruct // contains filtered or unexported fields }
A Controller is the handler of all API REST calls matching the stack model It forwards API requests to the stack instance identified by the GONG_StackPath parameters in the request the stack instance is the BackRepo instance
func GetController ¶
func GetController() *Controller
func (*Controller) AddBackRepo ¶
func (controller *Controller) AddBackRepo(backRepo *slider_orm.BackRepoStruct, stackPath string)
func (*Controller) DeleteCheckbox ¶
func (controller *Controller) DeleteCheckbox(c *gin.Context)
DeleteCheckbox
swagger:route DELETE /checkboxs/{ID} checkboxs deleteCheckbox
Delete a checkbox ¶
default: genericError
200: checkboxDBResponse
func (*Controller) DeleteGroup ¶
func (controller *Controller) DeleteGroup(c *gin.Context)
DeleteGroup
swagger:route DELETE /groups/{ID} groups deleteGroup
Delete a group ¶
default: genericError
200: groupDBResponse
func (*Controller) DeleteLayout ¶
func (controller *Controller) DeleteLayout(c *gin.Context)
DeleteLayout
swagger:route DELETE /layouts/{ID} layouts deleteLayout
Delete a layout ¶
default: genericError
200: layoutDBResponse
func (*Controller) DeleteSlider ¶
func (controller *Controller) DeleteSlider(c *gin.Context)
DeleteSlider
swagger:route DELETE /sliders/{ID} sliders deleteSlider
Delete a slider ¶
default: genericError
200: sliderDBResponse
func (*Controller) GetCheckbox ¶
func (controller *Controller) GetCheckbox(c *gin.Context)
GetCheckbox
swagger:route GET /checkboxs/{ID} checkboxs getCheckbox
Gets the details for a checkbox.
Responses: default: genericError
200: checkboxDBResponse
func (*Controller) GetCheckboxs ¶
func (controller *Controller) GetCheckboxs(c *gin.Context)
GetCheckboxs
swagger:route GET /checkboxs checkboxs getCheckboxs
Get all checkboxs ¶
Responses: default: genericError
200: checkboxDBResponse
func (*Controller) GetGroup ¶
func (controller *Controller) GetGroup(c *gin.Context)
GetGroup
swagger:route GET /groups/{ID} groups getGroup
Gets the details for a group.
Responses: default: genericError
200: groupDBResponse
func (*Controller) GetGroups ¶
func (controller *Controller) GetGroups(c *gin.Context)
GetGroups
swagger:route GET /groups groups getGroups
Get all groups ¶
Responses: default: genericError
200: groupDBResponse
func (*Controller) GetLastCommitFromBackNb ¶
func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)
swagger:route GET /commitfrombacknb backrepo GetLastCommitFromBackNb
func (*Controller) GetLastPushFromFrontNb ¶
func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)
swagger:route GET /pushfromfrontnb backrepo GetLastPushFromFrontNb
func (*Controller) GetLayout ¶
func (controller *Controller) GetLayout(c *gin.Context)
GetLayout
swagger:route GET /layouts/{ID} layouts getLayout
Gets the details for a layout.
Responses: default: genericError
200: layoutDBResponse
func (*Controller) GetLayouts ¶
func (controller *Controller) GetLayouts(c *gin.Context)
GetLayouts
swagger:route GET /layouts layouts getLayouts
Get all layouts ¶
Responses: default: genericError
200: layoutDBResponse
func (*Controller) GetSlider ¶
func (controller *Controller) GetSlider(c *gin.Context)
GetSlider
swagger:route GET /sliders/{ID} sliders getSlider
Gets the details for a slider.
Responses: default: genericError
200: sliderDBResponse
func (*Controller) GetSliders ¶
func (controller *Controller) GetSliders(c *gin.Context)
GetSliders
swagger:route GET /sliders sliders getSliders
Get all sliders ¶
Responses: default: genericError
200: sliderDBResponse
func (*Controller) PostCheckbox ¶
func (controller *Controller) PostCheckbox(c *gin.Context)
PostCheckbox
swagger:route POST /checkboxs checkboxs postCheckbox
Creates a checkbox
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostGroup ¶
func (controller *Controller) PostGroup(c *gin.Context)
PostGroup
swagger:route POST /groups groups postGroup
Creates a group
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostLayout ¶
func (controller *Controller) PostLayout(c *gin.Context)
PostLayout
swagger:route POST /layouts layouts postLayout
Creates a layout
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostSlider ¶
func (controller *Controller) PostSlider(c *gin.Context)
PostSlider
swagger:route POST /sliders sliders postSlider
Creates a slider
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) UpdateCheckbox ¶
func (controller *Controller) UpdateCheckbox(c *gin.Context)
UpdateCheckbox
swagger:route PATCH /checkboxs/{ID} checkboxs updateCheckbox
Update a checkbox ¶
Responses: default: genericError
200: checkboxDBResponse
func (*Controller) UpdateGroup ¶
func (controller *Controller) UpdateGroup(c *gin.Context)
UpdateGroup
swagger:route PATCH /groups/{ID} groups updateGroup
Update a group ¶
Responses: default: genericError
200: groupDBResponse
func (*Controller) UpdateLayout ¶
func (controller *Controller) UpdateLayout(c *gin.Context)
UpdateLayout
swagger:route PATCH /layouts/{ID} layouts updateLayout
Update a layout ¶
Responses: default: genericError
200: layoutDBResponse
func (*Controller) UpdateSlider ¶
func (controller *Controller) UpdateSlider(c *gin.Context)
UpdateSlider
swagger:route PATCH /sliders/{ID} sliders updateSlider
Update a slider ¶
Responses: default: genericError
200: sliderDBResponse
type GenericError ¶
type GenericError struct { // in: body Body struct { Code int32 `json:"code"` Message string `json:"message"` } `json:"body"` }
A GenericError is the default error message that is generated. For certain status codes there are more appropriate error structures.
swagger:response genericError
type GroupID ¶
type GroupID struct { // The ID of the order // // in: path // required: true ID int64 }
An GroupID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getGroup updateGroup deleteGroup
type GroupInput ¶
GroupInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postGroup updateGroup
type LayoutID ¶
type LayoutID struct { // The ID of the order // // in: path // required: true ID int64 }
An LayoutID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getLayout updateLayout deleteLayout
type LayoutInput ¶
LayoutInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postLayout updateLayout
type SliderID ¶
type SliderID struct { // The ID of the order // // in: path // required: true ID int64 }
An SliderID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getSlider updateSlider deleteSlider
type SliderInput ¶
SliderInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postSlider updateSlider
type ValidationError ¶
type ValidationError struct { // in: body Body struct { Code int32 `json:"code"` Message string `json:"message"` Field string `json:"field"` } `json:"body"` }
A ValidationError is an that is generated for validation failures. It has the same fields as a generic error but adds a Field property.
swagger:response validationError