Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminDocumentModelOptions ¶
func AdminDocumentModelOptions(app *AppConfig) admin.ModelOptions
func NewAppConfig ¶
Types ¶
type AppConfig ¶
type AppConfig struct {
*apps.DBRequiredAppConfig
Options *Options
}
func (*AppConfig) AllowedFileExts ¶
func (*AppConfig) AllowedMimeTypes ¶
func (*AppConfig) MaxByteSize ¶
func (*AppConfig) MediaBackend ¶
func (c *AppConfig) MediaBackend() mediafiles.Backend
type Document ¶
type Document struct {
models.Model
ID uint32 `json:"id"`
Title string `json:"title"`
Path string `json:"path"`
CreatedAt time.Time `json:"created_at"`
FileSize sql.NullInt32 `json:"file_size"`
FileHash string `json:"file_hash"`
// contains filtered or unexported fields
}
readonly:id,created_at
func (*Document) FieldDefs ¶
func (o *Document) FieldDefs() attrs.Definitions
func (*Document) File ¶
func (o *Document) File() (mediafiles.StoredObject, error)
Click to show internal directories.
Click to hide internal directories.