Directories
¶
| Path | Synopsis |
|---|---|
|
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. |
|
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. |
|
read-applications
Package readapplications lists applications: GET /api/applications.
|
Package readapplications lists applications: GET /api/applications. |
|
read-stats
Package readstats counts the applications: GET /api/stats.
|
Package readstats counts the applications: GET /api/stats. |
|
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 wrong password in a row, at the login and on the OAuth consent page.
|
Package throttle makes an address wait longer after each wrong password in a row, at the login and on the OAuth consent page. |
|
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. |
|
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. |
|
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/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 password checked, a session made for the device.
|
Package createsession logs in: the password checked, a session made for the device. |
|
process/deleteapplications
Package deleteapplications deletes the applications of ids or filters, in one statement.
|
Package deleteapplications deletes the applications of ids or filters, in one statement. |
|
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/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/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/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/readstats
Package readstats counts the applications by status, without reading them.
|
Package readstats counts the applications by status, 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/setpassword
Package setpassword sets the password of the one account, and logs out every session: a new password is how a lost device is shut out.
|
Package setpassword sets the password of the one account, and logs out every session: 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. |
|
seed
Package seed creates applications for the tests.
|
Package seed creates applications for the tests. |
|
sqlite
Package sqlite opens the base: one SQLite file, through the pure Go driver (no cgo, the image is scratch).
|
Package sqlite opens the base: one SQLite file, through the pure Go driver (no cgo, the image is scratch). |
|
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). |
Click to show internal directories.
Click to hide internal directories.