Gonion
Golang Client for querying Tor network data using the Onionoo service.
Install / Use
/learn @R4yGM/GonionREADME
Gonion
Lightweight Golang wrapper for querying Tor network data using the Onionoo service.
How to use
package main
import (
"fmt"
"log"
"net/http"
"github.com/R4yGM/gonion"
)
func main() {
// Build the HTTP client to use.
client := &http.Client{}
// Build parameters.
params := gonion.Params{
Search: str("R4y"),
Running: b(true),
RecommendedVersion: b(true),
}
// Issue the request.
res, err := gonion.GetDetails(client, params)
if err != nil {
log.Fatal(err)
}
// Use the results.
for _, relay := range res.Relays {
fmt.Println(relay.Nickname)
}
}
func str(str string) *string {
return &str
}
func b(b bool) *bool {
return &b
}
Support
The following endpoints are supported (tested through unit and integration tests):
- bandwidth
- clients
- details
- summary
- uptime
- weights
Related Skills
node-connect
349.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
xurl
349.9kA CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.
frontend-design
109.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
