Documentation ¶
Index ¶
- Variables
- type Config
- type Conn
- type File
- type FileInfo
- type Peer
- type PeerConn
- func (c *PeerConn) Close() error
- func (c *PeerConn) GetFile(ctx context.Context, path string) (File, error)
- func (c *PeerConn) GetFileListBZIP(ctx context.Context) (io.ReadCloser, error)
- func (c *PeerConn) Peer() *Peer
- func (c *PeerConn) StatFile(ctx context.Context, path string) (FileInfo, error)
- func (c *PeerConn) StatFileList(ctx context.Context, path string) (FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrPeerOffline = errors.New("peer is offline") ErrPeerPassive = errors.New("peer is passive") )
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn represents a Client-to-Hub connection.
func HubHandshake ¶
HubHandshake begins a Client-Hub handshake on a connection.
func (*Conn) Features ¶
func (c *Conn) Features() adc.ModFeatures
Features returns a set of negotiated features.
func (*Conn) OnlinePeers ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.