Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skynewz/go-jackett
Jackett Go client
https://github.com/skynewz/go-jackett
go go-client golang jackett torrent
Last synced: about 2 months ago
JSON representation
Jackett Go client
- Host: GitHub
- URL: https://github.com/skynewz/go-jackett
- Owner: SkYNewZ
- License: gpl-3.0
- Created: 2022-06-30T23:22:14.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-13T21:42:32.000Z (9 months ago)
- Last Synced: 2024-06-21T13:10:31.644Z (6 months ago)
- Topics: go, go-client, golang, jackett, torrent
- Language: Go
- Homepage: https://pkg.go.dev/github.com/SkYNewZ/go-jackett
- Size: 37.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-jackett
Go [Jackett](https://github.com/Jackett/Jackett) client.
## Get started
```go
package mainimport (
"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).