Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version string Build string BuildTime string )
View Source
var AnonUser = User{}
Functions ¶
Types ¶
type DatabaseService ¶
type MailService ¶
type RequestService ¶
type RequestState ¶
type RequestState int
const ( Waiting RequestState = iota Downloading Completed )
type Torrent ¶
type Torrent struct {
Name string `json:"name"`
Size uint64 `json:"size"`
InfoHash string `json:"info_hash"`
Files []string `json:"-"`
Payload []byte `json:"-"`
}
func NewTorrent ¶
NewTorrent creates a new torrent from a payload. It returns an error if the payload is invalid.
type Transaction ¶
type TransactionService ¶
type TransactionService interface {
Add(t Transaction) error
View(begin, end time.Time) ([]Transaction, error)
}
type TransactionType ¶
type TransactionType int
const ( AddTorrent TransactionType = iota DownloadTorrent )
Source Files
¶
Click to show internal directories.
Click to hide internal directories.