chore: improve code layout a bit
This commit is contained in:
1 parent
c39dce1380
commit
4e2d58ede0
1 file changed
+5
@@ -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
|
||||
|
||||
Reference in new issue
Block a user