Skip to content

localzet-dev/aura-sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image

Aura GO SDK

✨ Key Features

  • zero-reflection JSON decoder for high throughput,
  • compile-time validation against the OpenAPI 3.0 spec,
  • first-class context.Context support,
  • pluggable middleware (http.RoundTripper, retries, tracing, …).

📦 Installation

go get github.com/localzet/aura-sdk-go@latest

🚀 Usage

Here’s a quick example to get you started:

import (
	"context"
	"fmt"
	aura "github.com/localzet/aura-sdk-go/api"
)

func main() {
	ctx := context.Background()

	rclient, _ := aura.NewClient(
        // URL to your panel (ex. https://example.com or http://127.0.0.1:3000)
		"AURA_BASE_URL",
		// Bearer Token from panel (section: API Tokens)
        aura.StaticToken{Token: "AURA_TOKEN"},
	)

	resp, err := rclient.NodesControllerGetAllNodes(ctx)
	if err != nil {
		panic(err)
	}
	fmt.Println(resp)
}

About

Go SDK for Aura Network

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages