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
Index ¶
- func Register(r *gin.Engine)
- type Controller
- func (controller *Controller) AddBackRepo(backRepo *load_orm.BackRepoStruct, stackPath string)
- func (controller *Controller) DeleteFileToDownload(c *gin.Context)
- func (controller *Controller) DeleteFileToUpload(c *gin.Context)
- func (controller *Controller) DeleteMessage(c *gin.Context)
- func (controller *Controller) GetFileToDownload(c *gin.Context)
- func (controller *Controller) GetFileToDownloads(c *gin.Context)
- func (controller *Controller) GetFileToUpload(c *gin.Context)
- func (controller *Controller) GetFileToUploads(c *gin.Context)
- func (controller *Controller) GetLastCommitFromBackNb(c *gin.Context)
- func (controller *Controller) GetLastPushFromFrontNb(c *gin.Context)
- func (controller *Controller) GetMessage(c *gin.Context)
- func (controller *Controller) GetMessages(c *gin.Context)
- func (controller *Controller) PostFileToDownload(c *gin.Context)
- func (controller *Controller) PostFileToUpload(c *gin.Context)
- func (controller *Controller) PostMessage(c *gin.Context)
- func (controller *Controller) UpdateFileToDownload(c *gin.Context)
- func (controller *Controller) UpdateFileToUpload(c *gin.Context)
- func (controller *Controller) UpdateMessage(c *gin.Context)
- type FileToDownloadID
- type FileToDownloadInput
- type FileToUploadID
- type FileToUploadInput
- type GenericError
- type MessageID
- type MessageInput
- type ValidationError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Controller ¶
type Controller struct {
// Map_BackRepos is the map to the backRepo instance according to the stack instance path
Map_BackRepos map[string]*load_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 Name parameters in the request the stack instance is the BackRepo instance
func GetController ¶
func GetController() *Controller
func (*Controller) AddBackRepo ¶
func (controller *Controller) AddBackRepo(backRepo *load_orm.BackRepoStruct, stackPath string)
func (*Controller) DeleteFileToDownload ¶
func (controller *Controller) DeleteFileToDownload(c *gin.Context)
DeleteFileToDownload
swagger:route DELETE /filetodownloads/{ID} filetodownloads deleteFileToDownload
Delete a filetodownload ¶
default: genericError
200: filetodownloadDBResponse
func (*Controller) DeleteFileToUpload ¶
func (controller *Controller) DeleteFileToUpload(c *gin.Context)
DeleteFileToUpload
swagger:route DELETE /filetouploads/{ID} filetouploads deleteFileToUpload
Delete a filetoupload ¶
default: genericError
200: filetouploadDBResponse
func (*Controller) DeleteMessage ¶
func (controller *Controller) DeleteMessage(c *gin.Context)
DeleteMessage
swagger:route DELETE /messages/{ID} messages deleteMessage
Delete a message ¶
default: genericError
200: messageDBResponse
func (*Controller) GetFileToDownload ¶
func (controller *Controller) GetFileToDownload(c *gin.Context)
GetFileToDownload
swagger:route GET /filetodownloads/{ID} filetodownloads getFileToDownload
Gets the details for a filetodownload.
Responses: default: genericError
200: filetodownloadDBResponse
func (*Controller) GetFileToDownloads ¶
func (controller *Controller) GetFileToDownloads(c *gin.Context)
GetFileToDownloads
swagger:route GET /filetodownloads filetodownloads getFileToDownloads
Get all filetodownloads ¶
Responses: default: genericError
200: filetodownloadDBResponse
func (*Controller) GetFileToUpload ¶
func (controller *Controller) GetFileToUpload(c *gin.Context)
GetFileToUpload
swagger:route GET /filetouploads/{ID} filetouploads getFileToUpload
Gets the details for a filetoupload.
Responses: default: genericError
200: filetouploadDBResponse
func (*Controller) GetFileToUploads ¶
func (controller *Controller) GetFileToUploads(c *gin.Context)
GetFileToUploads
swagger:route GET /filetouploads filetouploads getFileToUploads
Get all filetouploads ¶
Responses: default: genericError
200: filetouploadDBResponse
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) GetMessage ¶
func (controller *Controller) GetMessage(c *gin.Context)
GetMessage
swagger:route GET /messages/{ID} messages getMessage
Gets the details for a message.
Responses: default: genericError
200: messageDBResponse
func (*Controller) GetMessages ¶
func (controller *Controller) GetMessages(c *gin.Context)
GetMessages
swagger:route GET /messages messages getMessages
Get all messages ¶
Responses: default: genericError
200: messageDBResponse
func (*Controller) PostFileToDownload ¶
func (controller *Controller) PostFileToDownload(c *gin.Context)
PostFileToDownload
swagger:route POST /filetodownloads filetodownloads postFileToDownload
Creates a filetodownload
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostFileToUpload ¶
func (controller *Controller) PostFileToUpload(c *gin.Context)
PostFileToUpload
swagger:route POST /filetouploads filetouploads postFileToUpload
Creates a filetoupload
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) PostMessage ¶
func (controller *Controller) PostMessage(c *gin.Context)
PostMessage
swagger:route POST /messages messages postMessage
Creates a message
Consumes: - application/json Produces: - application/json Responses: 200: nodeDBResponse
func (*Controller) UpdateFileToDownload ¶
func (controller *Controller) UpdateFileToDownload(c *gin.Context)
UpdateFileToDownload
swagger:route PATCH /filetodownloads/{ID} filetodownloads updateFileToDownload
Update a filetodownload ¶
Responses: default: genericError
200: filetodownloadDBResponse
func (*Controller) UpdateFileToUpload ¶
func (controller *Controller) UpdateFileToUpload(c *gin.Context)
UpdateFileToUpload
swagger:route PATCH /filetouploads/{ID} filetouploads updateFileToUpload
Update a filetoupload ¶
Responses: default: genericError
200: filetouploadDBResponse
func (*Controller) UpdateMessage ¶
func (controller *Controller) UpdateMessage(c *gin.Context)
UpdateMessage
swagger:route PATCH /messages/{ID} messages updateMessage
Update a message ¶
Responses: default: genericError
200: messageDBResponse
type FileToDownloadID ¶
type FileToDownloadID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An FileToDownloadID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getFileToDownload updateFileToDownload deleteFileToDownload
type FileToDownloadInput ¶
type FileToDownloadInput struct {
// The FileToDownload to submit or modify
// in: body
FileToDownload *orm.FileToDownloadAPI
}
FileToDownloadInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postFileToDownload updateFileToDownload
type FileToUploadID ¶
type FileToUploadID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An FileToUploadID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getFileToUpload updateFileToUpload deleteFileToUpload
type FileToUploadInput ¶
type FileToUploadInput struct {
// The FileToUpload to submit or modify
// in: body
FileToUpload *orm.FileToUploadAPI
}
FileToUploadInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postFileToUpload updateFileToUpload
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 MessageID ¶
type MessageID struct {
// The ID of the order
//
// in: path
// required: true
ID int64
}
An MessageID parameter model.
This is used for operations that want the ID of an order in the path swagger:parameters getMessage updateMessage deleteMessage
type MessageInput ¶
type MessageInput struct {
// The Message to submit or modify
// in: body
Message *orm.MessageAPI
}
MessageInput is a schema that can validate the user’s input to prevent us from getting invalid data swagger:parameters postMessage updateMessage
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