Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("video not found")
)
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { URI string `db:"uri" json:"uri"` EncodeFormat string `db:"name" json:"encodeFormat"` Status string `db:"status" json:"status"` Size *int `db:"size" json:"size"` MimeType string `db:"mime_type" json:"mimeType"` }
File represents a more readable VideoFile.
type Meta ¶
type Meta struct { ID int `db:"video_id" json:"id"` SeriesID int `db:"series_id" json:"seriesID"` Name string `db:"video_name" json:"name"` URL string `db:"url" json:"url"` Description string `db:"description" json:"description,omitempty"` // when listing description isn't included Thumbnail string `db:"thumbnail" json:"thumbnail"` Duration int `db:"duration" json:"duration"` Views int `db:"views" json:"views"` Tags []string `db:"tags" json:"tags"` Status string `db:"status" json:"status"` Preset `json:"preset"` BroadcastDate time.Time `db:"broadcast_date" json:"broadcastDate"` CreatedAt time.Time `db:"created_at" json:"createdAt"` CreatedByID int `db:"created_by_id" json:"createdByID"` CreatedByNick string `db:"created_by_nick" json:"createdByNick"` UpdatedAt *time.Time `db:"updated_at" json:"updatedAt,omitempty"` UpdatedByID *int `db:"updated_by_nick" json:"updatedByID,omitempty"` UpdatedByNick *string `db:"updated_by_nick" json:"updatedByNick,omitempty"` DeletedAt *time.Time `db:"deleted_at" json:"deletedAt,omitempty"` DeletedByID *int `db:"deleted_by_id" json:"deleteByID,omitempty"` DeletedByNick *string `db:"deleted_by_nick" json:"deleteByNick,omitempty"` }
Meta represents just the metadata of a video, used for listing.
type MetaCal ¶
type MetaCal struct { ID int `db:"video_id" json:"id"` Name string `db:"name" json:"name"` Status string `db:"status" json:"status"` BroadcastDate string `db:"broadcast_date" json:"broadcastDate"` }
MetaCal represents simple metadata for a calendar
type New ¶
type New struct { FileID string `json:"fileID"` SeriesID int `json:"seriesID" db:"series_id"` Name string `json:"name" db:"name"` URLName string `json:"urlName" db:"url"` Description string `json:"description" db:"description"` Tags []string `json:"tags" db:"tags"` PresetID int `json:"presetID" db:"preset_id"` PublishType string `json:"publishType" db:"status"` CreatedAt time.Time `json:"createdAt" db:"created_by"` CreatedBy int `json:"createdBy" db:"created_by"` BroadcastDate time.Time `json:"broadcastDate" db:"broadcast_date"` }
New is the basic information to create a video
Click to show internal directories.
Click to hide internal directories.