core/

directory
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: MIT

Directories

Path Synopsis
api
Package api is the HTTP API: one folder per route, each running a process of core/services/process.
Package api is the HTTP API: one folder per route, each running a process of core/services/process.
create-applications
Package createapplications creates applications: POST /api/applications.
Package createapplications creates applications: POST /api/applications.
delete-applications
Package deleteapplications deletes applications: DELETE /api/applications.
Package deleteapplications deletes applications: DELETE /api/applications.
edit-applications
Package editapplications changes applications: PATCH /api/applications.
Package editapplications changes applications: PATCH /api/applications.
export-data
Package exportdata gives everything the account wrote as one JSON file: GET /api/export.
Package exportdata gives everything the account wrote as one JSON file: GET /api/export.
forget-applications
Package forgetapplications deletes applications from the trash for good: DELETE /api/applications/deleted.
Package forgetapplications deletes applications from the trash for good: DELETE /api/applications/deleted.
import-data
Package importdata restores an export: POST /api/import.
Package importdata restores an export: POST /api/import.
invites
Package invites is the invitations to sign up, which an admin hands out in the invitation mode.
Package invites is the invitations to sign up, which an admin hands out in the invitation mode.
login
Package login is the session: log in, log out, and who is asking.
Package login is the session: log in, log out, and who is asking.
preferences
Package preferences reads and changes the preferences of the account: GET and PATCH /api/preferences.
Package preferences reads and changes the preferences of the account: GET and PATCH /api/preferences.
purge-applications
Package purgeapplications deletes every application, to start a new job search: DELETE /api/data.
Package purgeapplications deletes every application, to start a new job search: DELETE /api/data.
read-applications
Package readapplications lists applications: GET /api/applications.
Package readapplications lists applications: GET /api/applications.
read-countries
Package readcountries lists the countries an application can name: GET /api/countries.
Package readcountries lists the countries an application can name: GET /api/countries.
read-deleted-applications
Package readdeletedapplications lists the trash: GET /api/applications/deleted.
Package readdeletedapplications lists the trash: GET /api/applications/deleted.
read-sources
Package readsources lists the sources in use: GET /api/sources.
Package readsources lists the sources in use: GET /api/sources.
read-stats
Package readstats counts the applications: GET /api/stats.
Package readstats counts the applications: GET /api/stats.
read-status-changes
Package readstatuschanges gives the status history: GET /api/status-changes.
Package readstatuschanges gives the status history: GET /api/status-changes.
restore-applications
Package restoreapplications restores deleted applications: POST /api/applications/restore.
Package restoreapplications restores deleted applications: POST /api/applications/restore.
services/auth
Package auth lets through the requests with a valid token only, and tells the routes which one.
Package auth lets through the requests with a valid token only, and tells the routes which one.
services/guard
Package guard keeps the web pages of other sites away from the API: they could use the session cookie.
Package guard keeps the web pages of other sites away from the API: they could use the session cookie.
services/respond
Package respond is what every route shares: reading the request, writing JSON, turning process errors into statuses.
Package respond is what every route shares: reading the request, writing JSON, turning process errors into statuses.
services/throttle
Package throttle makes an address wait longer after each try in a row: wrong passwords at the login and on the OAuth consent page, accounts created from one address at the public sign-up.
Package throttle makes an address wait longer after each try in a row: wrong passwords at the login and on the OAuth consent page, accounts created from one address at the public sign-up.
tokens
Package tokens manages the API tokens and OAuth connections: refused to a token, a login only.
Package tokens manages the API tokens and OAuth connections: refused to a token, a login only.
users
Package users is the accounts of the multi mode: the sign-up, and the routes an admin runs the others with.
Package users is the accounts of the multi mode: the sign-up, and the routes an admin runs the others with.
Package domain holds the models: their bun tags are the schema, their json tags the API's JSON and the web app's types.
Package domain holds the models: their bun tags are the schema, their json tags the API's JSON and the web app's types.
server
cmd-admin
Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.
Package cmdadmin is the admin's commands of callback-server: they run on the base, on the server's machine.
cmd-serve
Package cmdserve is callback-server serve: the API, the web app next to it, and the MCP over HTTP on its own address.
Package cmdserve is callback-server serve: the API, the web app next to it, and the MCP over HTTP on its own address.
mcphttp
Package mcphttp serves the MCP tools of callback mcp over streamable HTTP, for an agent that cannot run callback where it runs (the Claude app calls from Anthropic's cloud).
Package mcphttp serves the MCP tools of callback mcp over streamable HTTP, for an agent that cannot run callback where it runs (the Claude app calls from Anthropic's cloud).
oauth
Package oauth makes the MCP address an OAuth 2.1 authorization server, as the MCP specification describes: the metadata, an open dynamic client registration, the consent page and the token endpoint.
Package oauth makes the MCP address an OAuth 2.1 authorization server, as the MCP specification describes: the metadata, an open dynamic client registration, the consent page and the token endpoint.
services
appfilter
Package appfilter turns a domain.Filter into the WHERE of a query on applications: the list, the batch update and the batch delete pick the same rows for the same filter.
Package appfilter turns a domain.Filter into the WHERE of a query on applications: the list, the batch update and the batch delete pick the same rows for the same filter.
applists
Package applists reads and writes the interviews and contacts of applications, by their ids: the callers check the account.
Package applists reads and writes the interviews and contacts of applications, by their ids: the callers check the account.
database
Package database opens the base: a SQLite file through the pure Go driver (no cgo, the image is scratch), or a Postgres base when the DSN is a postgres:// URL.
Package database opens the base: a SQLite file through the pure Go driver (no cgo, the image is scratch), or a Postgres base when the DSN is a postgres:// URL.
password
Package password hashes the passwords of the account with argon2id, and makes the session tokens.
Package password hashes the passwords of the account with argon2id, and makes the session tokens.
process/createapitoken
Package createapitoken makes an API token, for a script or an agent: shown once, the base keeps its hash.
Package createapitoken makes an API token, for a script or an agent: shown once, the base keeps its hash.
process/createapplications
Package createapplications creates a batch of applications in one transaction: the valid ones are written, the others listed with their error.
Package createapplications creates a batch of applications in one transaction: the valid ones are written, the others listed with their error.
process/createinvite
Package createinvite makes an invitation for the sign-up: the base keeps its hash, and its token sealed when CALLBACK_SECRET is set.
Package createinvite makes an invitation for the sign-up: the base keeps its hash, and its token sealed when CALLBACK_SECRET is set.
process/createoauthcode
Package createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.
Package createoauthcode is the consent of the OAuth page: the password checked, an authorization code for the client.
process/createoauthtoken
Package createoauthtoken exchanges an OAuth authorization code for a new connection: a token of kind oauth.
Package createoauthtoken exchanges an OAuth authorization code for a new connection: a token of kind oauth.
process/createschema
Package createschema creates what the base lacks, at every start: tables, indexes, the columns a model gained, then the one-time migrations.
Package createschema creates what the base lacks, at every start: tables, indexes, the columns a model gained, then the one-time migrations.
process/createsession
Package createsession logs in: the name and password checked, a session made for the device.
Package createsession logs in: the name and password checked, a session made for the device.
process/createuser
Package createuser is the sign-up of the multi mode: an account created by an invitation, or by anyone in the public mode.
Package createuser is the sign-up of the multi mode: an account created by an invitation, or by anyone in the public mode.
process/deleteapplications
Package deleteapplications deletes the applications of ids or filters in one transaction: they go to the trash for the preferences' trash_days, then are gone with their history.
Package deleteapplications deletes the applications of ids or filters in one transaction: they go to the trash for the preferences' trash_days, then are gone with their history.
process/deleteinvite
Package deleteinvite revokes an invitation, of any admin.
Package deleteinvite revokes an invitation, of any admin.
process/deletesession
Package deletesession logs this device out: its session token is deleted.
Package deletesession logs this device out: its session token is deleted.
process/deletetoken
Package deletetoken revokes an API token or an OAuth connection.
Package deletetoken revokes an API token or an OAuth connection.
process/deleteuser
Package deleteuser deletes an account for good with everything it holds: its applications, its trash, their history and follow-ups, its tokens, OAuth codes and the invitations it made.
Package deleteuser deletes an account for good with everything it holds: its applications, its trash, their history and follow-ups, its tokens, OAuth codes and the invitations it made.
process/editpassword
Package editpassword changes the password of the account logged in, given its current one, and logs its other devices out.
Package editpassword changes the password of the account logged in, given its current one, and logs its other devices out.
process/exportdata
Package exportdata reads every application, the trash, the status history and the follow-ups into a Backup.
Package exportdata reads every application, the trash, the status history and the follow-ups into a Backup.
process/forgetapplications
Package forgetapplications deletes applications from the trash for good, with their history: some by ids, or all.
Package forgetapplications deletes applications from the trash for good, with their history: some by ids, or all.
process/importdata
Package importdata restores a Backup in one transaction.
Package importdata restores a Backup in one transaction.
process/listapplications
Package listapplications reads applications: a filtered, sorted page, some columns only, comments cut.
Package listapplications reads applications: a filtered, sorted page, some columns only, comments cut.
process/listdeletedapplications
Package listdeletedapplications lists the trash: the applications deleted within the preferences' trash_days, the last deleted first.
Package listdeletedapplications lists the trash: the applications deleted within the preferences' trash_days, the last deleted first.
process/listinvites
Package listinvites gives the invitations still usable, of every admin: neither used nor expired, newest first.
Package listinvites gives the invitations still usable, of every admin: neither used nor expired, newest first.
process/listsources
Package listsources gives the sources the applications use, the most used first: the form offers them.
Package listsources gives the sources the applications use, the most used first: the form offers them.
process/liststatuschanges
Package liststatuschanges gives the status history of the applications, oldest first: the dashboard's funnel and response delays come from it, an agent reads it for some applications or since a day.
Package liststatuschanges gives the status history of the applications, oldest first: the dashboard's funnel and response delays come from it, an agent reads it for some applications or since a day.
process/listtokens
Package listtokens lists the API tokens and OAuth connections, newest first: not the sessions.
Package listtokens lists the API tokens and OAuth connections, newest first: not the sessions.
process/listusers
Package listusers gives every account, for an admin: no password hash, no preferences.
Package listusers gives every account, for an admin: no password hash, no preferences.
process/markunanswered
Package markunanswered moves to no_reply the applications waiting on the employer without news for some days: no follow-up, status change nor interview since, else since the day they applied, as the untouched_since filter.
Package markunanswered moves to no_reply the applications waiting on the employer without news for some days: no follow-up, status change nor interview since, else since the day they applied, as the untouched_since filter.
process/purgeapplications
Package purgeapplications deletes every application and its status history, to start a new job search: the password, the preferences, the sessions and the tokens stay.
Package purgeapplications deletes every application and its status history, to start a new job search: the password, the preferences, the sessions and the tokens stay.
process/purgetokens
Package purgetokens deletes what expired: sessions, tokens, OAuth connections and codes, login failures.
Package purgetokens deletes what expired: sessions, tokens, OAuth connections and codes, login failures.
process/readpreferences
Package readpreferences gives the preferences of the account of ctx, the defaults where none was saved.
Package readpreferences gives the preferences of the account of ctx, the defaults where none was saved.
process/readstats
Package readstats counts the applications by status and by source, without reading them.
Package readstats counts the applications by status and by source, without reading them.
process/readtoken
Package readtoken finds the token a client sent: a session, which starts its lifetime again, an API token, or the access token of an OAuth connection.
Package readtoken finds the token a client sent: a session, which starts its lifetime again, an API token, or the access token of an OAuth connection.
process/refreshoauthtoken
Package refreshoauthtoken gives an OAuth connection new tokens for its refresh token.
Package refreshoauthtoken gives an OAuth connection new tokens for its refresh token.
process/renameuser
Package renameuser changes the name of the account logged in, the one it logs in with.
Package renameuser changes the name of the account logged in, the one it logs in with.
process/restoreapplications
Package restoreapplications brings deleted applications back from the trash, with their history: the undo of a delete, within the preferences' trash_days.
Package restoreapplications brings deleted applications back from the trash, with their history: the undo of a delete, within the preferences' trash_days.
process/setpassword
Package setpassword sets the password of an account, and logs out its sessions: a new password is how a lost device is shut out.
Package setpassword sets the password of an account, and logs out its sessions: a new password is how a lost device is shut out.
process/updateapplications
Package updateapplications changes applications in one transaction: each op picks applications by ids or filters and sets fields.
Package updateapplications changes applications in one transaction: each op picks applications by ids or filters and sets fields.
process/updatepreferences
Package updatepreferences changes the preferences of the account of ctx: those left out keep their value.
Package updatepreferences changes the preferences of the account of ctx: those left out keep their value.
secret
Package secret seals the few values the base must give back, not only check (the invitation links), with the server's key CALLBACK_SECRET (AES-256-GCM): a stolen base or backup does not give them away.
Package secret seals the few values the base must give back, not only check (the invitation links), with the server's key CALLBACK_SECRET (AES-256-GCM): a stolen base or backup does not give them away.
seed
Package seed creates applications for the tests.
Package seed creates applications for the tests.
testdb
Package testdb gives each test a base of its own, in memory, with the schema.
Package testdb gives each test a base of its own, in memory, with the schema.
testserver
Package testserver serves the real API on a base of its own, for the tests of its clients (the routes, the CLI, the MCP, the OAuth).
Package testserver serves the real API on a base of its own, for the tests of its clients (the routes, the CLI, the MCP, the OAuth).
trash
Package trash moves deleted applications aside for the preferences' trash_days, so a delete can be undone, then forgets them with their history.
Package trash moves deleted applications aside for the preferences' trash_days, so a delete can be undone, then forgets them with their history.

Jump to

Keyboard shortcuts

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