fileitem

package
v0.0.0-...-dd30ea9 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FILE_ITEM_FIELDS = "id,iduser,bytes,extension,name,datecreated,mimetype"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FileItemDb

type FileItemDb struct {
	// contains filtered or unexported fields
}

func New

func New(db database.Db) *FileItemDb

func (*FileItemDb) Create

func (t *FileItemDb) Create(tx interface{}, item *domain.FileItem) error

func (*FileItemDb) Data

func (t *FileItemDb) Data(tx interface{}, id string) (*domain.FileItem, error)

func (*FileItemDb) DirectoryGrid

func (t *FileItemDb) DirectoryGrid(tx interface{}, grid *tecgrid.NgGrid) error

func (*FileItemDb) FileGrid

func (t *FileItemDb) FileGrid(tx interface{}, grid *tecgrid.NgGrid, filter *database.FileFilter) error

func (*FileItemDb) Load

func (t *FileItemDb) Load(tx interface{}, id string) (*domain.FileItem, error)

func (*FileItemDb) Remove

func (t *FileItemDb) Remove(tx interface{}, id string) (*domain.FileItem, error)

Jump to

Keyboard shortcuts

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