commands

package
v0.0.0-...-8c5f22a Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPeerNotFound = errors.New("commands: peer not found")

Functions

func Decode

func Decode(encodedValue string) (string, error)

Decode returns the JSON representation of the decoded value.

func Download

func Download(torrentPath, outputPath string) (string, error)

func Handshake

func Handshake(path, addr string) (string, error)

func Info

func Info(path string) (string, error)

func Peers

func Peers(path string) (string, error)

func RunCommand

func RunCommand(f CommandFunc)

func RunCommand2

func RunCommand2(f CommandFunc2)

Types

type CommandFunc

type CommandFunc func(string) (string, error)

type CommandFunc2

type CommandFunc2 func(string, string) (string, error)

Jump to

Keyboard shortcuts

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