Documentation
¶
Index ¶
Constants ¶
View Source
const (
TableName = "videos"
)
Some Importent Const ;
View Source
const (
ThumbnailDir = "thumbnails"
)
Thumbnail Dir Name ;
Variables ¶
This section is empty.
Functions ¶
func SaveUploadedFile ¶
SaveUploadedFile : save the file to given path if not exsists ;
func ViDataHasColumName ¶
ViDataHasColumName : to check if ViData Tabel Contain Colum Name ? ;
Types ¶
type ViData ¶
type ViData struct { ID int `gorm:"AUTOINCREMENT;PRIMARY_KEY" json:"id"` Filename string `gorm:"Type:TEXT;UNIQUE;NOT NULL" json:"filename"` Title string `gorm:"Type:TEXT;NOT NULL" json:"title"` Subject string `gorm:"Type:TEXT;NOT NULL" json:"subject"` Author string `gorm:"Type:TEXT" json:"author"` Tags string `gorm:"Type:TEXT" json:"tags"` Desc string `gorm:"Type:TEXT" json:"desc"` Indx int `gorm:"NOT NULL" json:"indx"` }
ViData : is a representaion of SQL video table's row ;
func Form2ViData ¶
Form2ViData : FormData to ViData with Validation.
Click to show internal directories.
Click to hide internal directories.