client

package
v0.6.12 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: MPL-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ErrExpectDHeader :)
	ErrExpectDHeader = errors.New("expected D as first byte in reply")
	// ErrExpectPVHeader :)
	ErrExpectPVHeader = errors.New("expected protocal version as first byte in reply")
	// ErrRespIncomplete :)
	ErrRespIncomplete = errors.New("expected a longer response than actually got")
	// ErrUnknownResp :)
	ErrUnknownResp = errors.New("unknown RPC response")
	// ErrRPCEvent :)
	ErrRPCEvent = errors.New("unexpected RPC Event message")
	// ErrAddFail :)
	ErrAddFail = errors.New("failed to add torrent file after 3 tries")
)

Functions

func UConvert

func UConvert(s string) float64

UConvert: convert a string which may contain unit to a float64 with bytes unit.

Types

type Client

type Client interface {
	Add(b []byte, name string) error
	Name() string
}

Client :)

type DeType

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

DeType :)

func NewDeClient

func NewDeClient(key string, m map[string]interface{}) *DeType

NewDeClient :)

func (*DeType) Add

func (c *DeType) Add(data []byte, name string) (e error)

Add :)

func (*DeType) Name

func (c *DeType) Name() string

Name :)

type QBType

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

QBType :)

func NewqBclient

func NewqBclient(key string, m map[string]interface{}) *QBType

NewqBclient :)

func (*QBType) Add

func (c *QBType) Add(data []byte, filename string) (e error)

Add :)

func (*QBType) Name

func (c *QBType) Name() string

Name :)

Jump to

Keyboard shortcuts

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