mldonkey

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mldonkey implements a library to talk to MLDonkey.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

A Conn represents a connection to MLDonkey.

func New

func New(serverURL string) (*Conn, error)

New prepares an MLDonkey connection by returning a *Conn.

func (*Conn) Add

func (c *Conn) Add(link string) error

Add adds a link by URL.

func (*Conn) Stats

func (c *Conn) Stats() (*Statistics, error)

Stats returns current statistics (speed, total downloads, etc.).

type Statistics

type Statistics struct {
	DL, UL            string
	Count             int
	Downloaded, Total string
}

A Statistics holds generic stats of MLDonkey.

func (*Statistics) String

func (s *Statistics) String() string

Directories

Path Synopsis
MLDonkey client for stats and add link by URL.
MLDonkey client for stats and add link by URL.

Jump to

Keyboard shortcuts

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