Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
platformgo
command
Command platformgo creates, generates and maintains Go projects on the platform.
|
Command platformgo creates, generates and maintains Go projects on the platform. |
|
internal
|
|
|
apply
Package apply brings a project in line with its platformgo.yaml.
|
Package apply brings a project in line with its platformgo.yaml. |
|
codegen
Package codegen runs the external generators of the postgres module: sqlc for static queries and jet for dynamic ones.
|
Package codegen runs the external generators of the postgres module: sqlc for static queries and jet for dynamic ones. |
|
codemod
Package codemod rewrites project code when an incompatible change of kit arrives.
|
Package codemod rewrites project code when an incompatible change of kit arrives. |
|
gen
Package gen generates project files from platformgo.yaml.
|
Package gen generates project files from platformgo.yaml. |
|
gomod
Package gomod reads and edits the go.mod of a project through the go command.
|
Package gomod reads and edits the go.mod of a project through the go command. |
|
lint
Package lint runs the checks of a project in one place: the checks of taply, with the ones that depend on a module run only when the module is enabled.
|
Package lint runs the checks of a project in one place: the checks of taply, with the ones that depend on a module run only when the module is enabled. |
|
lock
Package lock reads and writes platformgo.lock: what platformgo has actually applied to a project.
|
Package lock reads and writes platformgo.lock: what platformgo has actually applied to a project. |
|
registry
Package registry is the catalogue of modules platformgo knows how to wire in.
|
Package registry is the catalogue of modules platformgo knows how to wire in. |
|
scaffold
Package scaffold creates a new project on the platform.
|
Package scaffold creates a new project on the platform. |
|
settingsdef
Package settingsdef reads settings.yaml, the business settings schema of a project.
|
Package settingsdef reads settings.yaml, the business settings schema of a project. |
|
setup
Package setup prepares the shell of a developer: completion for platformgo and the short pgo alias.
|
Package setup prepares the shell of a developer: completion for platformgo and the short pgo alias. |
|
spec
Package spec reads and validates platformgo.yaml, the description of a project.
|
Package spec reads and validates platformgo.yaml, the description of a project. |
|
upgrade
Package upgrade moves a project to another platform version.
|
Package upgrade moves a project to another platform version. |
|
version
Package version holds the platform version stamped into new projects.
|
Package version holds the platform version stamped into new projects. |
|
kit
|
|
|
adminx
Package adminx holds the primitives the admin UI is built from: passwords, one time codes, sessions and the audit log.
|
Package adminx holds the primitives the admin UI is built from: passwords, one time codes, sessions and the audit log. |
|
confx
Package confx reads settings from environment variables.
|
Package confx reads settings from environment variables. |
|
enumx
Package enumx is the catalog of the enums of a project: every allowed value of a status, a provider or a type with its description, for clients and for validation.
|
Package enumx is the catalog of the enums of a project: every allowed value of a status, a provider or a type with its description, for clients and for validation. |
|
i18nx
Package i18nx translates the API, ported from taply's i18n package: translations of entity fields stored in the database and substituted into responses by Accept-Language, and static translations of error messages.
|
Package i18nx translates the API, ported from taply's i18n package: translations of entity fields stored in the database and substituted into responses by Accept-Language, and static translations of error messages. |
|
internal/testapi/platformtest/v1
Package platformtestv1 is a reverse proxy.
|
Package platformtestv1 is a reverse proxy. |
|
logx
Package logx builds an slog logger configured the same way in every project.
|
Package logx builds an slog logger configured the same way in every project. |
|
modules/admin
Package admin is a platform module: the admin panel of the project, running inside the same binary as the application.
|
Package admin is a platform module: the admin panel of the project, running inside the same binary as the application. |
|
modules/api
Package api is a platform module: a gRPC server and a REST gateway in front of it, with the interceptors every service needs and the OpenAPI description of the API.
|
Package api is a platform module: a gRPC server and a REST gateway in front of it, with the interceptors every service needs and the OpenAPI description of the API. |
|
modules/enums
Package enums is a platform module: the catalog of the enums of the project served to clients, as taply's GetEnums does, with descriptions translated when i18n is enabled.
|
Package enums is a platform module: the catalog of the enums of the project served to clients, as taply's GetEnums does, with descriptions translated when i18n is enabled. |
|
modules/i18n
Package i18n is a platform module: translations of API responses and error messages, ported from taply.
|
Package i18n is a platform module: translations of API responses and error messages, ported from taply. |
|
modules/postgres
Package postgres is a platform module: a PostgreSQL connection pool with a health check, pool metrics and a clean shutdown.
|
Package postgres is a platform module: a PostgreSQL connection pool with a health check, pool metrics and a clean shutdown. |
|
modules/rbac
Package rbac is a platform module: role based access to the gRPC methods of the API, in the model and policy format of taply.
|
Package rbac is a platform module: role based access to the gRPC methods of the API, in the model and policy format of taply. |
|
modules/riverx
Package riverx is a platform module: background jobs on River, stored in the PostgreSQL database of the postgres module.
|
Package riverx is a platform module: background jobs on River, stored in the PostgreSQL database of the postgres module. |
|
modules/s3
Package s3 is a platform module: S3 compatible object storage — MinIO locally, any S3 in production — for the files of the project.
|
Package s3 is a platform module: S3 compatible object storage — MinIO locally, any S3 in production — for the files of the project. |
|
modules/settings
Package settings is a platform module: business settings of the project, stored in the database and editable without a deploy.
|
Package settings is a platform module: business settings of the project, stored in the database and editable without a deploy. |
|
modules/web
Package web is a platform module: server rendered pages next to the API — templ components, htmx fragments, CSRF protection, sealed cookies and hashed static assets from kit/webx.
|
Package web is a platform module: server rendered pages next to the API — templ components, htmx fragments, CSRF protection, sealed cookies and hashed static assets from kit/webx. |
|
pgdb
Package pgdb opens a PostgreSQL connection pool and helps with transactions.
|
Package pgdb opens a PostgreSQL connection pool and helps with transactions. |
|
settingsx
Package settingsx holds the business settings of a project: the schema, the current values and typed access to them.
|
Package settingsx holds the business settings of a project: the schema, the current values and typed access to them. |
|
webx
Package webx serves server rendered pages: templ components rendered as a whole page or as an htmx fragment, CSRF protection, sealed cookies for the state of multi step forms, static assets with content hashed names and a strict content security policy.
|
Package webx serves server rendered pages: templ components rendered as a whole page or as an htmx fragment, CSRF protection, sealed cookies for the state of multi step forms, static assets with content hashed names and a strict content security policy. |
Click to show internal directories.
Click to hide internal directories.