Documentation ¶
Index ¶
- Constants
- type FileItemDb
- func (t *FileItemDb) Create(tx interface{}, item *domain.FileItem) error
- func (t *FileItemDb) Data(tx interface{}, id string) (*domain.FileItem, error)
- func (t *FileItemDb) DirectoryGrid(tx interface{}, grid *tecgrid.NgGrid) error
- func (t *FileItemDb) FileGrid(tx interface{}, grid *tecgrid.NgGrid, filter *database.FileFilter) error
- func (t *FileItemDb) Load(tx interface{}, id string) (*domain.FileItem, error)
- func (t *FileItemDb) Remove(tx interface{}, id string) (*domain.FileItem, error)
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
Click to show internal directories.
Click to hide internal directories.