infra

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package infra is the root of the infrastructure layer.

Inbound adapters under infra/in translate requests (HTTP, SSO callbacks, worker ticks, CLI) into application commands and queries and hold no rules. Outbound adapters under infra/out implement application ports: PostgreSQL repositories, mail, ClickHouse, object storage, outbound HTTP.

Directories

Path Synopsis
Package compose assembles a replica: it builds the application's handlers on their PostgreSQL and other outbound adapters and mounts the APIs on the edge.
Package compose assembles a replica: it builds the application's handlers on their PostgreSQL and other outbound adapters and mounts the APIs on the edge.
Package config is the server's configuration: one table declares every setting, and the loader, the keys of the configuration file and the public reference (docs/configuration.md) are all derived from it, so the reference cannot fall behind what the server reads.
Package config is the server's configuration: one table declares every setting, and the loader, the keys of the configuration file and the public reference (docs/configuration.md) are all derived from it, so the reference cannot fall behind what the server reads.
in
cli
Package cli is the flagnetic command line.
Package cli is the flagnetic command line.
http
Package http is the server's HTTP edge: the public handler with its health and readiness probes, onto which the APIs and the console are mounted.
Package http is the server's HTTP edge: the public handler with its health and readiness probes, onto which the APIs and the console are mounted.
http/console
Package console serves the web console the binary embeds: the build of web/apps/console, or a placeholder page when the binary was built without it, so `go build` never needs Node.
Package console serves the web console the binary embeds: the build of web/apps/console, or a placeholder page when the binary was built without it, so `go build` never needs Node.
http/management
Package management provides primitives to interact with the openapi HTTP API.
Package management provides primitives to interact with the openapi HTTP API.
http/management/operations
Package operations reads what each operation of the management API requires from its OpenAPI document, and holds the table generated from it that the permission seam reads.
Package operations reads what each operation of the management API requires from its OpenAPI document, and holds the table generated from it that the permission seam reads.
http/sdk
Package sdk provides primitives to interact with the openapi HTTP API.
Package sdk provides primitives to interact with the openapi HTTP API.
worker
Package worker runs a replica's background work in rounds.
Package worker runs a replica's background work in rounds.
Package metrics is the replica's Prometheus registry and the listener that serves it.
Package metrics is the replica's Prometheus registry and the listener that serves it.
out
password
Package password hashes members' passwords with argon2id.
Package password hashes members' passwords with argon2id.
postgres
Package postgres is the server's PostgreSQL: the connection pool, the check that the server is a supported version, and the schema migrations embedded in the binary.
Package postgres is the server's PostgreSQL: the connection pool, the check that the server is a supported version, and the schema migrations embedded in the binary.
postgres/access
Package access is the PostgreSQL repository of the access context: members, API tokens and sessions.
Package access is the PostgreSQL repository of the access context: members, API tokens and sessions.
postgres/delivery
Package delivery is the PostgreSQL repository of the delivery context: for now, the ruleset version of each environment.
Package delivery is the PostgreSQL repository of the delivery context: for now, the ruleset version of each environment.
postgres/flags
Package flags is the PostgreSQL repository of the flags context: flags, their configuration in each environment, and segments.
Package flags is the PostgreSQL repository of the flags context: flags, their configuration in each environment, and segments.
postgres/governance
Package governance is the PostgreSQL repository of the governance context: the audit log.
Package governance is the PostgreSQL repository of the governance context: the audit log.
postgres/workspace
Package workspace is the PostgreSQL repository of the workspace context: projects, their environments, unit types and attributes.
Package workspace is the PostgreSQL repository of the workspace context: projects, their environments, unit types and attributes.
testclock
Package testclock is the test-only clock of FLAGNETIC_TEST_CLOCK_FILE: the wall clock moved ahead by the duration a file holds, such as "25h".
Package testclock is the test-only clock of FLAGNETIC_TEST_CLOCK_FILE: the wall clock moved ahead by the duration a file holds, such as "25h".

Jump to

Keyboard shortcuts

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