Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/skynewz/go-jackett

Jackett Go client
https://github.com/skynewz/go-jackett

go go-client golang jackett torrent

Last synced: about 7 hours ago
JSON representation

Jackett Go client

Awesome Lists containing this project

README

        

# go-jackett

Go [Jackett](https://github.com/Jackett/Jackett) client.

## Get started

```go
package main

import (
"context"

"github.com/SkYNewZ/go-jackett"
)

func main() {
// Read JACKETT_API_URL and JACKETT_API_KEY by default
client := jackett.New(nil)
results, err := client.Fetch(context.Background(), jackett.WithQuery("foo"))
if err != nil {
panic(err)
}

_ = results // use results
}
```

## Trackers

Available trackers are statically types using [`cmd/jackett-sync`](cmd/jackett-sync) as code generator
from https://github.com/Jackett/Jackett/tree/master/src/Jackett.Common/Definitions.
You can see the output at [`trackers/trackers.go`](trackers/trackers.go).