Go SDK
Use the BeeBuzz Go SDK to send notifications from Go applications and services.
It supports both delivery modes:
- Trusted delivery with
Sendwhen your application sends directly to BeeBuzz. - End-to-end encrypted delivery with
SendEncryptedwhen your application encrypts for paired devices before upload.
Install
Section titled “Install”go get go.beebuzz.app/beebuzz-go@latestSend a notification
Section titled “Send a notification”package main
import ( "context" "log"
beebuzz "go.beebuzz.app/beebuzz-go")
func main() { ctx := context.Background()
client, err := beebuzz.New("beebuzz_api_...") if err != nil { log.Fatal(err) }
notification := beebuzz.NewNotification("Build finished") notification.Body = "main passed CI"
_, err = client.Send(ctx, notification) if err != nil { log.Fatal(err) }}For end-to-end encrypted delivery, list the paired device keys and pass their recipients to SendEncrypted.
See the Go SDK API reference for the full API and examples.