internal/

directory
v0.1.80 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2026 License: Apache-2.0

Directories

Path Synopsis
Package account is api's AccountService of the contract novatrail.api.v1: the account and its invite code, its PIN, profiles, consents and deletion.
Package account is api's AccountService of the contract novatrail.api.v1: the account and its invite code, its PIN, profiles, consents and deletion.
Package admission is the function of admission to AI as api asks it before an attempt: the admission table of the release of spec that tutor reads, the facts the deployment declares in its file, and the least stage of tutor's rule of admission of models.
Package admission is the function of admission to AI as api asks it before an attempt: the admission table of the release of spec that tutor reads, the facts the deployment declares in its file, and the least stage of tutor's rule of admission of models.
Package argon is api's slow hash, argon2id, for what has too few values for a fast one: a PIN, and the fingerprint of a request that carries a PIN or an age.
Package argon is api's slow hash, argon2id, for what has too few values for a fast one: a PIN, and the fingerprint of a request that carries a PIN or an age.
Package authn is api's port to the sign-in service.
Package authn is api's port to the sign-in service.
authntest
Package authntest is a fake of authn.Port for the tests of the code that holds it: a token is whatever the test says it is, and the users are the test's own.
Package authntest is a fake of authn.Port for the tests of the code that holds it: a token is whatever the test says it is, and the users are the test's own.
Package authz is api's rights: OpenFGA, a library in api's own process, on its store in the database openfga.
Package authz is api's rights: OpenFGA, a library in api's own process, on its store in the database openfga.
Package catalog is api's way from a module to its package, in the contract novatrail.api.v1: PackageService, the open views of a package by its digest and which digests the image still gives; ModuleService, the catalog of a profile and the modules connected to it; and the files of the device parts, by HTTP GET, which are no method of Connect.
Package catalog is api's way from a module to its package, in the contract novatrail.api.v1: PackageService, the open views of a package by its digest and which digests the image still gives; ModuleService, the catalog of a profile and the modules connected to it; and the files of the device parts, by HTTP GET, which are no method of Connect.
Package config reads the service's configuration from the environment.
Package config reads the service's configuration from the environment.
Package consentage is the age of digital consent by country: the table of spec's part consent-age/, at the tag api pins, and the category of a learner it gives.
Package consentage is the age of digital consent by country: the table of spec's part consent-age/, at the tag api pins, and the category of a learner it gives.
Package countries is what api knows of a learner's country before the DPIA: its form, and the countries no deployment may take learners from until the DPIA is done — those of the GDPR and of the UK GDPR.
Package countries is what api knows of a learner's country before the DPIA: its form, and the countries no deployment may take learners from until the DPIA is done — those of the GDPR and of the UK GDPR.
Package debug is the debug mode of the models of a task from paper: which models serve its calls of AI, past the admission list, and what each call returned and cost, for an account with the right of the mode.
Package debug is the debug mode of the models of a task from paper: which models serve its calls of AI, past the admission list, and what each call returned and cost, for an account with the right of the mode.
Package deletion is the deletion of a profile and of an account in this order: the database first, then the tuples of the rights, then the user at the sign-in service, and the account's row last.
Package deletion is the deletion of a profile and of an account in this order: the database first, then the tuples of the rights, then the user at the sign-in service, and the account's row last.
Package export is api's part of the export of a profile or an account, api.zip: its files by spec's part export/ — account.json in the export of the account, a file of each profile and the .proto files the records of protobuf are written by —, of whatever the database api keeps, with what the package of a module tells of an attempt while the image holds it.
Package export is api's part of the export of a profile or an account, api.zip: its files by spec's part export/ — account.json in the export of the account, a file of each profile and the .proto files the records of protobuf are written by —, of whatever the database api keeps, with what the package of a module tells of an attempt while the image holds it.
Package forms is the port of the store of the scans of the forms of a parent's consent: the closed bucket of the operator in Cloud Storage, where api writes under a prefix of its own and reads nothing, and a folder outside every git working tree, which no development agent gets, for the dev projects and the first app.
Package forms is the port of the store of the scans of the forms of a parent's consent: the closed bucket of the operator in Cloud Storage, where api writes under a prefix of its own and reads nothing, and a folder outside every git working tree, which no development agent gets, for the dev projects and the first app.
Package idem is what tells one request from another under one idempotency key: the key's form and the request's fingerprint.
Package idem is what tells one request from another under one idempotency key: the key's form and the request's fingerprint.
Package invite is the invite codes of the closed slice: how a code is made, how one given back is read, and the SHA-256 that is all the database keeps of it.
Package invite is the invite codes of the closed slice: how a code is made, how one given back is read, and the SHA-256 that is all the database keeps of it.
Package learning runs attempts of tasks: their beginning, the open attempt, the submission of the work and its verdict by module-kit, on the options tapped and on what tutor read, the submission of an essay and its feedback by the rubric, the techniques a solving step gives, "Done", the hint ladder with the tutor's words and their fallback texts, the showing of the solution, lesson runs with their segments, and the tasks from the learner's paper, found on the photo of a page.
Package learning runs attempts of tasks: their beginning, the open attempt, the submission of the work and its verdict by module-kit, on the options tapped and on what tutor read, the submission of an essay and its feedback by the rubric, the techniques a solving step gives, "Done", the hint ladder with the tutor's words and their fallback texts, the showing of the solution, lesson runs with their segments, and the tasks from the learner's paper, found on the photo of a page.
Package legal is the legal texts api serves: the part legal/ of spec at the tag api pins, spec.Legal, or a self-hosted copy's folder of its operator's texts, read once at the start by the rules of reading of spec's legal/README.md.
Package legal is the legal texts api serves: the part legal/ of spec at the tag api pins, spec.Legal, or a self-hosted copy's folder of its operator's texts, read once at the start by the rules of reading of spec's legal/README.md.
Package logging is the service's log: JSON lines on one stream, in the keys Cloud Logging reads, held to the table of events in events.go.
Package logging is the service's log: JSON lines on one stream, in the keys Cloud Logging reads, held to the table of events in events.go.
Package model is the learner model of api: it builds the evidence of a closed attempt, appends it to the profile's journal, keeps the cache of the skill state that learner-model folds of the journal, and reads the state for the skill map.
Package model is the learner model of api: it builds the evidence of a closed attempt, appends it to the profile's journal, keeps the cache of the skill state that learner-model folds of the journal, and reads the state for the skill map.
Package packages is the module packages api holds: the release of modules that modules.json pins and the digest of its index, the command that lays the packages of that index which are in api's window into a folder — the image's, or the first app's outside git — and the reading of that folder when serve starts.
Package packages is the module packages api holds: the release of modules that modules.json pins and the digest of its index, the command that lays the packages of that index which are in api's window into a folder — the image's, or the first app's outside git — and the reading of that folder when serve starts.
packagestest
Package packagestest builds, for the tests, what package packages lays and reads: the packages of the vectors of spec's format, their archives, an index of them and a release of modules that serves them, and a folder laid from them, read as serve reads it.
Package packagestest builds, for the tests, what package packages lays and reads: the packages of the vectors of spec's format, their archives, an index of them and a release of modules that serves them, and a folder laid from them, read as serve reads it.
Package pin is the PIN of the section for adults: its form, its hash and the count of wrong PINs that closes its input.
Package pin is the PIN of the section for adults: its form, its hash and the count of wrong PINs that closes its input.
Package quota is the quota of platform AI: its unit, the tariffs and their caps for a family day, the typical tasks a new task of handwriting must find room for, and the reserve of a kind of call when tutor gives no expected price.
Package quota is the quota of platform AI: its unit, the tariffs and their caps for a family day, the typical tasks a new task of handwriting must find room for, and the reserve of a kind of call when tutor gives no expected price.
Package rpc is api's server of the contract novatrail.api.v1, on Connect v2: the methods of the contract, its codecs, and the interceptors every request goes through — its line of the log, its time limit and the checks, which run before any handler.
Package rpc is api's server of the contract novatrail.api.v1, on Connect v2: the methods of the contract, its codecs, and the interceptors every request goes through — its line of the log, its time limit and the checks, which run before any handler.
Package server is the HTTP server of the service and its graceful stop.
Package server is the HTTP server of the service and its graceful stop.
Package store is api's database: its schema, the migrations that make it, the pool requests take their connections from, and the transaction a write under an account runs in.
Package store is api's database: its schema, the migrations that make it, the pool requests take their connections from, and the transaction a write under an account runs in.
storetest
Package storetest runs the tests of api's database on a real PostgreSQL with no Docker, as the devcontainer and CI have none: embedded-postgres starts one server for a test binary, when its first test asks for a database, migrates a template database once, and gives each test a database of its own made from it, which is a copy and takes milliseconds.
Package storetest runs the tests of api's database on a real PostgreSQL with no Docker, as the devcontainer and CI have none: embedded-postgres starts one server for a test binary, when its first test asks for a database, migrates a template database once, and gives each test a database of its own made from it, which is a copy and takes milliseconds.
Package sweep is the daily job of the terms of keeping: it finishes the deletions the requests left unfinished and deletes what is kept past its term — accounts and profiles idle for 12 months, users of the sign-in service with no account for 30 days, dangling tuples, the minimal records of consents for children 5 years after the deletion, the counters of the quota a day after their day, and the records of keys and OpenFGA's changelog after a day — and closes what a learner abandoned: an attempt with no action for 7 days, and a lesson run with none for 30.
Package sweep is the daily job of the terms of keeping: it finishes the deletions the requests left unfinished and deletes what is kept past its term — accounts and profiles idle for 12 months, users of the sign-in service with no account for 30 days, dangling tuples, the minimal records of consents for children 5 years after the deletion, the counters of the quota a day after their day, and the records of keys and OpenFGA's changelog after a day — and closes what a learner abandoned: an attempt with no action for 7 days, and a lesson run with none for 30.
Package tutorstub is the stub of tutor in api's dev mode: it stands behind the ports through which api calls tutor — the readings of a sheet, a workbook page and an essay, the assessment of an essay, the tutor's words, the finding of the tasks on the photo of a page and the check of a task from paper — so that a run of the path on the dev projects calls no provider and costs nothing.
Package tutorstub is the stub of tutor in api's dev mode: it stands behind the ports through which api calls tutor — the readings of a sheet, a workbook page and an essay, the assessment of an essay, the tutor's words, the finding of the tasks on the photo of a page and the check of a task from paper — so that a run of the path on the dev projects calls no provider and costs nothing.
Package version holds the build identity of the binary.
Package version holds the build identity of the binary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL