Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type ChatMessage struct { ID string `gorm:"primarykey"` CreatedAt time.Time `json:"created_at"` UserID string `json:"user_id"` UserDisplayName string `json:"user_display_name"` UserName string `json:"user_name"` Message string `json:"message"` Tags map[string]string `gorm:"serializer:json" json:"tags"` }
type Clip ¶
type Clip struct { UUID string `gorm:"primaryKey;uniqueIndex" json:"uuid" form:"uuid"` Title string `json:"title" form:"title"` Duration int `json:"duration" form:"duration"` Date *time.Time `json:"date" form:"date" time_format:"2006-01-02T15:04:05.000Z"` Filename string `json:"filename" form:"filename"` Resolution string `json:"resolution" form:"resolution"` Fps float32 `json:"fps" form:"fps"` Size int `json:"size" form:"size"` Viewcount int `gorm:"default:0" json:"viewcount" form:"viewcount"` VodOffset int `json:"vod_offset" form:"vod_offset"` CreatorUUID string `json:"creator_uuid" form:"creator_uuid"` Creator Creator `gorm:"foreignKey:CreatorUUID;references:UUID" form:"creator" json:"creator"` GameUUID string `json:"game_uuid" form:"game_uuid"` Game Game `gorm:"foreignKey:GameUUID;references:UUID" json:"game" form:"game"` VodUUID string `json:"vod_uuid" form:"vod_uuid"` Vod Vod `gorm:"foreignKey:VodUUID;references:UUID" json:"vod" form:"vod"` }
type Vod ¶
type Vod struct { UUID string `gorm:"primaryKey;uniqueIndex" json:"uuid" form:"uuid"` Title string `gorm:"column:title" json:"title" form:"title"` TitleVector string `` /* 226-byte string literal not displayed */ Duration int `json:"duration" form:"duration"` Date *time.Time `json:"date" form:"date" time_format:"2006-01-02T15:04:05.000Z"` Viewcount int `gorm:"default:0" json:"viewcount" form:"viewcount"` Filename string `json:"filename" form:"filename"` Resolution string `json:"resolution" form:"resolution"` Fps float32 `json:"fps" form:"fps"` Size int `json:"size" form:"size"` Publish bool `json:"publish" form:"publish"` Clips []Clip `gorm:"constraint:OnUpdate:CASCADE,OnDelete:SET NULL;" json:"clips" form:"clips"` Transcript string `gorm:"column:transcript;type:text" json:"transcript" form:"transcript"` TranscriptVector string `` /* 246-byte string literal not displayed */ }
Click to show internal directories.
Click to hide internal directories.