Documentation ¶
Index ¶
- type DB
- func (db *DB) CreateTracker(guid string) error
- func (db *DB) DeleteTrackersOlderThan(created_at string) error
- func (db *DB) GetTracker(guid string) (Tracker, error)
- func (db *DB) GetTrackerByHash(hash string) (Tracker, error)
- func (db *DB) UpdateTracker(guid string, txResult string, ratio float64, seedTime int, hash string) error
- type Tracker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracker ¶
type Tracker struct { Hash string `db:"hash"` CreatedAt string `db:"created_at"` TransmissionTxResult string `db:"transmission_tx_result"` TransmissionRatio float64 `db:"transmission_ratio"` TransmissionSeedTime int `db:"transmission_seed_time"` TransmissionStatus *string `db:"transmission_status"` Guid string `db:"guid"` }
Click to show internal directories.
Click to hide internal directories.