Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { URLValuesToPeer(values url.Values) (Peer, error) PeerToURLValues(peer Peer) url.Values StringToPeer(str string) (Peer, error) }
Adapter represents a peer adapter
type Builder ¶
type Builder interface { Create() Builder WithHost(host string) Builder WithPort(port uint) Builder IsClear() Builder IsOnion() Builder Now() (Peer, error) }
Builder represents a peer builder
type Peer ¶
Peer represents a peer
func CreatePeerWithClear ¶
CreatePeerWithClear creates a new peer instance with clear
func CreatePeerWithOnion ¶
CreatePeerWithOnion creates a new peer instance with onion
Click to show internal directories.
Click to hide internal directories.