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"
)
// ── Type Definitions ─────────────────────────────────────────────
type Configuration struct {
BackendUrl string
Secret string
@@ -24,10 +25,14 @@ type requestBody struct {
ProductType string `json:"type"`
}
// ── Globals ──────────────────────────────────────────────────────
var conf *Configuration
var usingStubs bool
var failCountSinceLastSuccess int
// ── Functions ────────────────────────────────────────────────────
// Initialize the SDK, specifying the configuration
func Init(config Configuration) {
conf = &config
usingStubs = false