models

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PushedRelease

type PushedRelease struct {
	Id          int `storm:"id,increment"`
	Name        string
	TrackerName string
	PvrName     string
	Approved    bool
	CreatedAt   time.Time
}

func GetLatestApprovedReleases

func GetLatestApprovedReleases(db *storm.DB, count int) []*PushedRelease

func GetLatestPushedReleases

func GetLatestPushedReleases(db *storm.DB, count int) []*PushedRelease

func NewPushedRelease

func NewPushedRelease(db *storm.DB, name string, trackerName string, pvrName string, approved bool) (*PushedRelease, error)

Methods

func (PushedRelease) DurationSinceCreated

func (r PushedRelease) DurationSinceCreated() string

Struct Methods

type Tracker

type Tracker struct {
	Name    string `storm:"id,unique"`
	Version string
}

Tracker - Model representation of an autodl tracker file

func NewOrExistingTracker

func NewOrExistingTracker(db *storm.DB, name string) (*Tracker, error)

NewOrExistingTracker - Return an existing or new tracker

Jump to

Keyboard shortcuts

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