model

package
v0.0.0-...-28f24a1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	InfoHash        string
	PeerID          string
	Agent           string
	Ipv4            string
	Ipv6            string
	Port            uint32
	UploadedBytes   uint64
	DownloadedBytes uint64
	LeftBytes       uint64
	IsSeeder        bool
	IsConnectable   bool
	FinishedAt      int64
	LastActiveAt    int64
}

type PeerAggResult

type PeerAggResult struct {
	TorrentID   uint64
	SeederCount uint64
	PeerCount   uint64
}

type PeerSlice

type PeerSlice []Peer

type Torrent

type Torrent struct {
	InfoHash      string
	SeederCount   uint64
	LeecherCount  uint64
	SnatcherCount uint64
	MetaInfo      string
	CreatedAt     int64
	LastActiveAt  int64
}

type TorrentSlice

type TorrentSlice []Torrent

Jump to

Keyboard shortcuts

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