internal/

directory
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: BSD-3-Clause

Directories

Path Synopsis
Package api is the REST API of Clowder for desktop clients (SPEC §7.12, D42 to D45): JSON over HTTP under /api/v1/, authenticated by a bearer token.
Package api is the REST API of Clowder for desktop clients (SPEC §7.12, D42 to D45): JSON over HTTP under /api/v1/, authenticated by a bearer token.
Package app holds the services, their permission checks and the audit events they write.
Package app holds the services, their permission checks and the audit events they write.
Package auth does the argon2id password hashing and makes the session and invitation tokens.
Package auth does the argon2id password hashing and makes the session and invitation tokens.
Package calls is the media server of the one-to-one calls (SPEC §7.18, D63, D64): a small WebRTC forwarding server made with pion.
Package calls is the media server of the one-to-one calls (SPEC §7.18, D63, D64): a small WebRTC forwarding server made with pion.
callstest
Package callstest is the client of the tests of the calls: a pion peer that takes part in a call through the signalling socket of the server, sends synthetic Opus and VP8 packets and counts what it receives.
Package callstest is the client of the tests of the calls: a pion peer that takes part in a call through the signalling socket of the server, sends synthetic Opus and VP8 packets and counts what it receives.
Package clock defines the clock interface and its fake for tests.
Package clock defines the clock interface and its fake for tests.
Package cluster is what several Clowder processes share through Redis (SPEC D41, §8.1).
Package cluster is what several Clowder processes share through Redis (SPEC D41, §8.1).
Package config holds the configuration of Clowder and its validation.
Package config holds the configuration of Clowder and its validation.
Package files stores the attachments on disk under the data directory.
Package files stores the attachments on disk under the data directory.
Package live is the event hub: services publish events and the server-sent event streams subscribe to them (SPEC D18, §8).
Package live is the event hub: services publish events and the server-sent event streams subscribe to them (SPEC D18, §8).
presencetest
Package presencetest holds the table of tests that every live.Presence implementation must pass, so that the in-memory one and the one over Redis behave the same.
Package presencetest holds the table of tests that every live.Presence implementation must pass, so that the in-memory one and the one over Redis behave the same.
Package markdown renders the body of a post or a comment to HTML and extracts the mentions from it.
Package markdown renders the body of a post or a comment to HTML and extracts the mentions from it.
cmd/gencodecss command
Command gencodecss writes internal/web/static/code.css, the stylesheet of the code blocks that internal/markdown renders: the block itself and the colour of each hl- class of the highlighted tokens.
Command gencodecss writes internal/web/static/code.css, the stylesheet of the code blocks that internal/markdown renders: the block itself and the colour of each hl- class of the highlighted tokens.
Package metrics holds the counters, gauges and histograms of SPEC D60 and writes them in the Prometheus text format (version 0.0.4), by hand, with no client library.
Package metrics holds the counters, gauges and histograms of SPEC D60 and writes them in the Prometheus text format (version 0.0.4), by hand, with no client library.
Package sshcode is the SSH server of the sign-in codes (SPEC §7.16, D52).
Package sshcode is the SSH server of the sign-in codes (SPEC §7.16, D52).
Package store holds the GORM models, the queries, the migrations and the FTS5 index.
Package store holds the GORM models, the queries, the migrations and the FTS5 index.
storetest
Package storetest opens throw-away stores for tests.
Package storetest opens throw-away stores for tests.
web
Package web holds the HTTP server, the routes, the middleware, the handlers and the server-sent event streams.
Package web holds the HTTP server, the routes, the middleware, the handlers and the server-sent event streams.
static
Package static holds the files the server sends as they are: the Datastar client, the stylesheet and the scripts.
Package static holds the files the server sends as they are: the Datastar client, the stylesheet and the scripts.
views
Package views holds the templ components and pages.
Package views holds the templ components and pages.

Jump to

Keyboard shortcuts

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