Documentation ¶
Index ¶
- type Database
- func (db *Database) AutoMigrate() error
- func (db *Database) CreateTableLines() error
- func (db *Database) CreateTableVideos() error
- func (db *Database) DeleteLines(video *models.Video) error
- func (db *Database) InsertLine(line *models.Line) (int64, error)
- func (db *Database) InsertVideo(video *models.Video) (int64, error)
- func (db *Database) SearchLine(videos []int64, keyword string) ([]models.Line, error)
- func (db *Database) VideoByID(ID int64) (*models.Video, error)
- func (db *Database) VideoByVideoFile(videoFile string) (*models.Video, error)
- func (db *Database) Videos() ([]models.Video, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) AutoMigrate ¶
func (*Database) CreateTableLines ¶
func (*Database) CreateTableVideos ¶
func (*Database) SearchLine ¶
func (*Database) VideoByVideoFile ¶
Click to show internal directories.
Click to hide internal directories.