No description
- Go 100%
| bootstrap | ||
| internal/systeminfo | ||
| .gitlab-ci.yml | ||
| client.go | ||
| client_state_test.go | ||
| go.mod | ||
| go.sum | ||
| README.md | ||
| types.go | ||
| types_test.go | ||
thigs-sdk-go
Go SDK for the Thigs App Account protocol.
The SDK owns the reusable client-side account layer:
- DNS/API bootstrap helpers;
- install and device identifiers;
- device X25519 keypair;
/v1/device/hello;- manual link flow;
- token refresh/logout;
- feature and license cache;
- heartbeat;
- update check;
- device-bound encrypted proxy config import, including optional TLS material and domain routes for a specific linked installation.
ProxyConfig remains backward-compatible with endpoint-only tokens. New tokens
may additionally provide id, name, tls, and routes; applications decide
how to persist and activate that product-specific routing profile.
Applications provide only product-specific values:
client, err := accountsdk.New(accountsdk.Config{
Product: "net-tester",
Version: "0.1.0",
Channel: "dev",
APIBaseURL: "https://s1.politsin.com:8083",
StorageDir: ".app-state",
})
Bootstrap helpers live in bootstrap:
env, err := bootstrap.LoadEnv(".env")
apiURL, err := bootstrap.ResolveAPI(ctx, env)
The default missing-env bootstrap points to DNS TXT thigs.politsin.com.
Run checks:
go test ./...