Versions in this module Expand all Collapse all v1 v1.6.2 Mar 2, 2021 v1.6.1 Mar 2, 2021 Changes in this version + var Keys = struct{ ... } + type Resumer struct + func New(db *bbolt.DB, bucket []byte) (*Resumer, error) + func (r *Resumer) Read(torrentID string) (spec *Spec, err error) + func (r *Resumer) Write(torrentID string, spec *Spec) error + func (r *Resumer) WriteBitfield(torrentID string, value []byte) error + func (r *Resumer) WriteInfo(torrentID string, value []byte) error + func (r *Resumer) WriteStarted(torrentID string, value bool) error + type Spec struct + AddedAt time.Time + Bitfield []byte + BytesDownloaded int64 + BytesUploaded int64 + BytesWasted int64 + FixedPeers []string + Info []byte + InfoHash []byte + Name string + Port int + SeededFor time.Duration + Started bool + StopAfterDownload bool + Trackers [][]string + URLList []string + func (s *Spec) UnmarshalJSON(b []byte) error + func (s Spec) MarshalJSON() ([]byte, error)