common

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: 0 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address string

func (*Address) Valid

func (self *Address) Valid() bool

type InfoHash

type InfoHash string

func (*InfoHash) Valid

func (self *InfoHash) Valid() bool

type Peer

type Peer struct {
	PeerID PeerID  `bencode:"peer_id"`
	IP     Address `bencode:"ip"`
	Port   int     `bencode:"port"`
}

type PeerID

type PeerID string

func (*PeerID) Valid

func (self *PeerID) Valid() bool

Jump to

Keyboard shortcuts

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