chore: improve code layout a bit

This commit is contained in:
janishutz committed 2026-09-26 16:10:16 +02:00
1 parent c39dce1380
commit 4e2d58ede0
1 file changed
+5
+5
View File
@@ -7,6 +7,7 @@ import (
"net/http" "net/http"
) )
// ── Type Definitions ─────────────────────────────────────────────
type Configuration struct { type Configuration struct {
BackendUrl string BackendUrl string
Secret string Secret string
@@ -24,10 +25,14 @@ type requestBody struct {
ProductType string `json:"type"` ProductType string `json:"type"`
} }
// ── Globals ──────────────────────────────────────────────────────
var conf *Configuration var conf *Configuration
var usingStubs bool var usingStubs bool
var failCountSinceLastSuccess int var failCountSinceLastSuccess int
// ── Functions ────────────────────────────────────────────────────
// Initialize the SDK, specifying the configuration
func Init(config Configuration) { func Init(config Configuration) {
conf = &config conf = &config
usingStubs = false usingStubs = false