schemas

package
v0.0.0-...-640c710 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PeerStats

type PeerStats struct {
	Downloaded int64  `gorm:"not null"`
	Uploaded   int64  `gorm:"not null"`
	Ip         string `gorm:"varchar(15)"`
	// contains filtered or unexported fields
}

type Torrent

type Torrent struct {
	InfoHash    string `gorm:"varchar(32), not null"`
	Name        string `gorm:"not null"`
	Downloaded  int    `gorm:"not null"`
	Seeders     int64  `gorm:"not null"`
	Leechers    int64  `gorm:"not null"`
	AddedBy     string `gorm:"varchar(15)"`
	Description string `gorm:"varchar(512)"`
	DateAdded   int64
	// contains filtered or unexported fields
}

Torrent houses the torrent schema information that we store in the DB.

type TrackerStats

type TrackerStats struct {
	Downloaded int64 `gorm:"not null"`
	Uploaded   int64 `gorm:"not null"`
	// contains filtered or unexported fields
}

type WhiteTorrent

type WhiteTorrent struct {
	InfoHash  string `gorm:"varchar(32), not null"`
	Name      string `gorm:"not null"`
	AddedBy   string `gorm:"varchar(15)"`
	DateAdded int64
	// contains filtered or unexported fields
}

func (*WhiteTorrent) AddWhitelistedTorrent

func (t *WhiteTorrent) AddWhitelistedTorrent(db *gorm.DB) bool

Jump to

Keyboard shortcuts

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