collectionop

package
v0.0.0-...-e7e2df9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateIfObjectExist

func ValidateIfObjectExist(collectionname string, filter bson.M, User string) (bool, error)

Types

type CollectionController

type CollectionController struct {
}

func (*CollectionController) CollectionObjectRevision

func (c *CollectionController) CollectionObjectRevision(ctx *gin.Context)

func (*CollectionController) DeleteCollectionDatabyID

func (c *CollectionController) DeleteCollectionDatabyID(ctx *gin.Context)

func (*CollectionController) GetDetailCollectionData

func (c *CollectionController) GetDetailCollectionData(ctx *gin.Context)

func (*CollectionController) GetDetailCollectionDatabyID

func (c *CollectionController) GetDetailCollectionDatabyID(ctx *gin.Context)

func (*CollectionController) GetDetailCollectionDatabyName

func (c *CollectionController) GetDetailCollectionDatabyName(ctx *gin.Context)

GetDetailCollectionDatabyName retrieves the detail data of a collection by its name. It expects a JSON request body containing the collection name and data. The function returns the detail data of the collection as a JSON response. The function also logs the performance of the function. The function also logs any errors that occur.

func (*CollectionController) GetDetailCollectionDatabyUUID

func (c *CollectionController) GetDetailCollectionDatabyUUID(ctx *gin.Context)

func (*CollectionController) GetListofCollectionData

func (c *CollectionController) GetListofCollectionData(ctx *gin.Context)

func (*CollectionController) UpdateCollectionData

func (c *CollectionController) UpdateCollectionData(ctx *gin.Context)

type CollectionData

type CollectionData struct {
	CollectionName string                 `json:"collectionname"`
	Data           map[string]interface{} `json:"data"`
	Operation      string                 `json:"operation"`
	Keys           []string               `json:"keys"`
}

Jump to

Keyboard shortcuts

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