storage

package
Version: v0.0.0-...-fdbec17 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2017 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	Config   *CoreCommon.Config
	Requests map[common.InfoHash]map[common.PeerID]tracker.Request
	Logger   *log.Logger
}

func New

func New(config *CoreCommon.Config) *Storage

func (*Storage) Delete

func (self *Storage) Delete(request tracker.Request)

func (*Storage) GetPeers

func (self *Storage) GetPeers(infoHash common.InfoHash) []common.Peer

func (*Storage) Update

func (self *Storage) Update(request tracker.Request)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL