models

package
v0.0.0-...-ee1e291 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2020 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB(c *gin.Context) *gorm.DB

func Migrate

func Migrate(db *gorm.DB)

func OpenDB

func OpenDB() *gorm.DB

Types

type Episode

type Episode struct {
	gorm.Model
	TVSeriesID int
	Season     int
	Episode    int
	Name       string
}

type RSS

type RSS struct {
	gorm.Model
	URL string
}

type Status

type Status int
const (
	StatusAdded Status = iota
	StatusRunning
	StatusStopped
	StatusSeeding
)

type TVSeries

type TVSeries struct {
	gorm.Model
	NameCN   string
	NameEN   string
	YyetsID  string
	DoubanID string
	ImdbID   string
}

type Task

type Task struct {
	gorm.Model
	MagnetLink string
	Status     Status
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL