HivePaaS
An open-source, self-hosted PaaS on Docker Swarm. Deploy apps, databases and functions from one VPS to a whole cluster, with SSL, backups and autoscaling built in.
The official Linkbreakers Go SDK for high-performance microservices, CLI tools, and system utilities. Zero external dependencies with native Go idioms and error handling.
Developer toolsMustache · ShellGitHub @linkbreakers-comOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
Official Go SDK for the Linkbreakers API: create dynamic QR codes and short links, and read scan analytics.
Taken from the repository README
Loading the full README.
Read the full README ↗Official Go SDK for the Linkbreakers API, auto-generated from OpenAPI specification.
go get github.com/linkbreakers-com/linkbreakers-go
package main
import (
"context"
"fmt"
"log"
linkbreakers "github.com/linkbreakers-com/linkbreakers-go"
)
func main() {
client := linkbreakers.NewAPIClient(linkbreakers.NewConfiguration())
// Every request reads the Bearer token from its context
ctx := context.WithValue(context.Background(), linkbreakers.ContextAccessToken, "your-api-token")
// Create a shortened link
request := linkbreakers.NewCreateLinkRequest("https://example.com")
request.SetName("My Link")
created, _, err := client.LinksAPI.LinksServiceCreate(ctx).CreateLinkRequest(*request).Execute()
if err != nil {
log.Fatalf("Error creating link: %v", err)
}
link := created.GetLink()
fmt.Println("Short link:", link.GetShortlink())
// List links
links, _, err := client.LinksAPI.LinksServiceList(ctx).PageSize(10).Execute()
if err != nil {
log.Fatalf("Error listing links: %v", err)
}
fmt.Printf("Found %d links\n", len(links.GetLinks()))
}
Each API is a field on the client (client.LinksAPI, client.VisitorsAPI, ...) and each operation is named after the API's operation ID (LinksServiceCreate, LinksServiceList, VisitorsServiceIdentify, ...). Path parameters are arguments; query parameters and the request body are builder methods, and Execute() sends the request.
The SDK uses Bearer token authentication. Put your workspace API token in the context passed to each call with linkbreakers.ContextAccessToken, as in the example above. Get a token from the Linkbreakers dashboard.
For detailed API documentation, visit: https://docs.linkbreakers.com
This SDK is automatically generated from the Linkbreakers OpenAPI specification and published when the API is updated. This README is written by hand: scripts/check-docs.sh compiles every Go block in it against the generated code, on pull requests and before every release.
Current API version: See OPENAPI_VERSION
Report issues at: https://github.com/linkbreakers-com/linkbreakers-go/issues
MIT License