zyxar / argo Goto Github PK
View Code? Open in Web Editor NEWaria2 RPC in go
License: MIT License
aria2 RPC in go
License: MIT License
method AddTorrent
use options
got The parameter at 1 has wrong type.
I want to add bt-tracker
I tried bt-tracker:xxx
and rpc.Option{"bt-tracker":"xxx"}
, but it still does not work
btName := "test.torrent"
options := "bt-tracker:xxx"
// options := rpc.Option{"bt-tracker":"xxx"}
if err := rpc.AddTorrent(btName, options); err != nil {
fmt.PrintIn(err)
}
The parameter at 1 has wrong type.
Hi @zyxar =)
gid, err = dm.ARIA2Connection.AddTorrent(*torrentfile) if err != nil { log.Fatalf("Torrent err: %v", err) } log.Printf("GID: %s , gid)
In *_test.go this function has not been tested.
error output :Active Download not found for GID#cd54f3fc5d2b4110
Hi,
I need to control an aria2 daemon from go and I found your library.
I found it quite neat and I wanted to improve it (to improve my "go-writing" skills ^^).
I took the liberty of creating a fork and reorganizing it quite heavily : https://github.com/oliverpool/argo (I tried to make a nice godoc page, with a complete example : https://godoc.org/github.com/oliverpool/argo).
I you want, I can make a PR to merge it into your library (it will break all compatibility) or we can let them live separately (You can see diff : master...oliverpool:master).
I did not implement the system.multicall
RPC method yet (because it is quite complicated). But maybe I could implement it using a special Caller
which could gather them and send them all at the same time.
When I use typescript to connect to aria2 through websocket method, I can receive messages such as aria2.onDownloadStart
actively sent by aria2 every time. In golang, my own program can only receive this kind of information once, and then never again. Using this package, I can't even receive such information once.I have filled in the correct value of the notifier parameter. I went to analyze the source code and found that the call.go 180 lines of code to handle this kind of information were found. It seems that there is no problem, but I still can't receive it. If you can, can you write a sample program? Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.