services/

directory
v0.9.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
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
deleteinvite
Package deleteinvite revokes an invitation, of any admin.
Package deleteinvite revokes an invitation, of any admin.
deletesession
Package deletesession logs this device out: its session token is deleted.
Package deletesession logs this device out: its session token is deleted.
deletetoken
Package deletetoken revokes an API token or an OAuth connection.
Package deletetoken revokes an API token or an OAuth connection.
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.
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.
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.
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.
importdata
Package importdata restores a Backup in one transaction.
Package importdata restores a Backup in one transaction.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Package seed creates applications for the tests.
Package seed creates applications for the tests.
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.
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).
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