{"modulePath":"github.com/keygrantdev/keygrant-go","version":"v1.0.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/keygrantdev/keygrant-go","name":"keygrant","synopsis":"Package keygrant is KeyGrant licensing for Go apps: command-line tools, desktop apps and self-hosted servers.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/b64","name":"b64","synopsis":"Package b64 is base64url as every KeyGrant token is written (RFC 4648 section 5, no padding), read only in its canonical form.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/device","name":"device","synopsis":"Package device is who the device is: the fingerprints the SDK sends, the claims a lease names a device by, and the default fingerprinter's reading of the machine id (the reference's adapters.ts, device.ts, machine-id.ts).","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/jsonx","name":"jsonx","synopsis":"Package jsonx reads JSON as the reference SDK's JSON.parse does, into values a caller reads by exact member name: objects as map[string]any, arrays as []any, strings, booleans, nil, and numbers kept as their text (json.Number), so a whole number written 4.0, a number past 2^53 and one past a double's range are each seen for what they are.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/jstext","name":"jstext","synopsis":"Package jstext does to text what the reference SDK's JavaScript does to it, so a key, an address or a name is read the same in every KeyGrant SDK: String.prototype.trim, String.prototype.toUpperCase, lengths counted in UTF-16 units, and TextDecoder's reading of UTF-8.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/lease","name":"lease","synopsis":"Package lease verifies a KeyGrant lease offline: a compact JWS, EdDSA over Ed25519, against the build's key set (the reference's shared crypto.ts verifyLease), and reads its claims as the reference reads them.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/licensefile","name":"licensefile","synopsis":"Package licensefile reads and judges a licence file (sdk-contract.md section 10; the reference's shared license-file.ts, license-file-text.ts and the reference's license-file.ts): the container, the token verified offline against the build's key set, the judgement for this app and the status a stored one gives.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/meters","name":"meters","synopsis":"Package meters is metered uses' logic (sdk-contract.md section 12; the reference's meters.ts and journal.ts): what use() was asked, the figures, a status's meters, spending offline, when a spend asks, the reports a request carries and the confirmations an answer brings, what a use answer does, and the journal of unsynced spends.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/offline","name":"offline","synopsis":"Package offline is what the SDK decides from what the device holds, without asking the server (the reference's offline.ts): whether a lease licenses this build, what a trial shows, which refusal still stands, and when to ask again.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/pickup","name":"pickup","synopsis":"Package pickup is key pickup's logic (sdk-contract.md section 13; the reference's pickup.ts): what a person typed prepared to send, a refusal's word, a confirm's keys read leniently, and the key a restore activates.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/state","name":"state","synopsis":"Package state is what the SDK keeps on disk (sdk-contract.md 5.5): the stored state, a JSON object every KeyGrant SDK reads and writes the same way, how a save lands on it (merge.go), and the clock guard (clock.go).","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/store","name":"store","synopsis":"Package store is the SDK's default state file (the reference's storage.ts, storage-fs.ts; sdk-contract.md section 6): where it lives, and how it is read and written so that neither a crash nor a busy disk ever costs a customer their licence.","isRedistributable":true},{"path":"github.com/keygrantdev/keygrant-go/internal/wire","name":"wire","synopsis":"Package wire is what the SDK sends and reads on the wire (the reference's wire.ts): the server's error words, the bounds the endpoints hold strings to, and the shapes of their answers.","isRedistributable":true}],"total":13}}
