Documentation ¶
Index ¶
- func SetRoutes(engine *gin.Engine, datastore interfaces.Datastore, ...) error
- type Documents
- func (h *Documents) AddObject(c *gin.Context)
- func (h *Documents) DeleteObject(c *gin.Context)
- func (h *Documents) GetObject(c *gin.Context)
- func (d *Documents) GetStats(c *gin.Context)
- func (d *Documents) ListCollectionUsage(c *gin.Context)
- func (h *Documents) ListObjects(c *gin.Context)
- func (h *Documents) PutObject(c *gin.Context)
- type Usage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Documents ¶
type Documents struct {
// contains filtered or unexported fields
}
Documents contains the datastore and any HTTP handlers for project resource documents
func New ¶
func New(db interfaces.Datastore) *Documents
New returns a pointer to a new `Documents` struct
func (*Documents) DeleteObject ¶
DeleteObject deletes the object from the collection
func (*Documents) GetObject ¶
GetObject returns a single object with the resourceID for this resource
func (*Documents) ListCollectionUsage ¶
ListCollectionUsage returns the list of activity logs for a project
func (*Documents) ListObjects ¶
ListObjects returns the list of objects for a resource
Click to show internal directories.
Click to hide internal directories.