file

package
Version: v0.0.0-...-2b5e5cc Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	ID        uint       `gorm:"primary_key" json:"-"`
	HashID    string     `gorm:"unique"`
	CreatedAt time.Time  `json:"-"`
	UpdatedAt time.Time  `json:"-"`
	DeletedAt *time.Time `sql:"index" json:"-"`
	Reference string     `json:"-"`
	System    string     `json:"-"`
	Type      string
	Path      string `json:"-"`
	Name      string `json:"-"`
}

func (File) Add

func (f File) Add() (File, error)

func (*File) AfterCreate

func (f *File) AfterCreate(tx *gorm.DB) (err error)

func (*File) AfterFind

func (f *File) AfterFind() (err error)

func (File) Update

func (f File) Update() (File, error)

type Files

type Files []*File

func BatchUpdates

func BatchUpdates(maps interface{}, updates interface{}) (Files, error)

func Get

func Get(ids []interface{}, maps interface{}) (Files, error)

Source Files

Jump to

Keyboard shortcuts

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