Documentation ¶
Index ¶
- type Manager
- type Metadata
- type Snapshot
- type TcpTracker
- func (tt *TcpTracker) Close() error
- func (tt *TcpTracker) DownloadTotalX() int64
- func (tt *TcpTracker) ID() string
- func (tt *TcpTracker) MetadataX() *Metadata
- func (tt *TcpTracker) Read(b []byte) (int, error)
- func (tt *TcpTracker) UploadTotalX() int64
- func (tt *TcpTracker) Write(b []byte) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
var DefaultManager *Manager
func (*Manager) PushDownloaded ¶
func (*Manager) PushUploaded ¶
func (*Manager) ResetStatistic ¶
func (m *Manager) ResetStatistic()
type TcpTracker ¶
func NewTCPTracker ¶
func NewTCPTracker(conn net.Conn, metadata *Metadata) *TcpTracker
func (*TcpTracker) Close ¶
func (tt *TcpTracker) Close() error
func (*TcpTracker) DownloadTotalX ¶ added in v1.0.1
func (tt *TcpTracker) DownloadTotalX() int64
func (*TcpTracker) ID ¶
func (tt *TcpTracker) ID() string
func (*TcpTracker) MetadataX ¶ added in v1.0.1
func (tt *TcpTracker) MetadataX() *Metadata
func (*TcpTracker) UploadTotalX ¶ added in v1.0.1
func (tt *TcpTracker) UploadTotalX() int64
Click to show internal directories.
Click to hide internal directories.