Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides primitives to interact with the openapi HTTP API.
|
Package api provides primitives to interact with the openapi HTTP API. |
|
grpc/authctx
Package authctx lets compute-node authors read the CloudEvents AuthContext extension that cyoda-go attaches to callout events (see internal/grpc/cloudevent.go AttachAuthContext) and apply a fail-closed role gate.
|
Package authctx lets compute-node authors read the CloudEvents AuthContext extension that cyoda-go attaches to callout events (see internal/grpc/cloudevent.go AttachAuthContext) and apply a fail-closed role gate. |
|
cmd
|
|
|
compute-test-client
command
Package main is the compute-test-client binary used by the parity E2E suite.
|
Package main is the compute-test-client binary used by the parity E2E suite. |
|
cyoda
command
|
|
|
cyoda/help
Package help — CLI dispatch for the `cyoda help` subcommand.
|
Package help — CLI dispatch for the `cyoda help` subcommand. |
|
cyoda/help/renderer
Package renderer provides the glamour-based markdown renderer and the content-discipline linter for the cyoda help subsystem.
|
Package renderer provides the glamour-based markdown renderer and the content-discipline linter for the cyoda help subsystem. |
|
release-preflight
command
release-preflight validates that the repository is in a releasable state before a v* tag is built.
|
release-preflight validates that the repository is in a releasable state before a v* tag is built. |
|
docs
|
|
|
cyoda/schema
Package cyodaschemas embeds the CloudEvent JSON Schema tree shipped with cyoda-go.
|
Package cyodaschemas embeds the CloudEvent JSON Schema tree shipped with cyoda-go. |
|
e2e
|
|
|
externalapi/driver
Package driver provides the HTTPDriver abstraction used by e2e/parity/externalapi scenarios.
|
Package driver provides the HTTPDriver abstraction used by e2e/parity/externalapi scenarios. |
|
externalapi/errorcontract
Package errorcontract defines a normalised, cross-language view of an HTTP error response.
|
Package errorcontract defines a normalised, cross-language view of an HTTP error response. |
|
parity
Package parity holds the shared end-to-end test scenarios that every cyoda-go storage backend must satisfy.
|
Package parity holds the shared end-to-end test scenarios that every cyoda-go storage backend must satisfy. |
|
parity/client
Package client holds the HTTP and gRPC clients used by parity scenarios to talk to a running cyoda-go server.
|
Package client holds the HTTP and gRPC clients used by parity scenarios to talk to a running cyoda-go server. |
|
parity/externalapi
Package externalapi contains parity Run* functions that implement the External API Scenario Dictionary scenarios against cyoda-go's HTTP API.
|
Package externalapi contains parity Run* functions that implement the External API Scenario Dictionary scenarios against cyoda-go's HTTP API. |
|
parity/fixtureutil
Package fixtureutil provides shared helpers for parity test backend fixtures: port picking, RSA key generation, JWT minting, binary building, subprocess lifecycle, and readiness probes.
|
Package fixtureutil provides shared helpers for parity test backend fixtures: port picking, RSA key generation, JWT minting, binary building, subprocess lifecycle, and readiness probes. |
|
parity/memory
Package memory provides a BackendFixture that runs cyoda-go with the in-memory storage backend and a compute-test-client subprocess connected via gRPC.
|
Package memory provides a BackendFixture that runs cyoda-go with the in-memory storage backend and a compute-test-client subprocess connected via gRPC. |
|
parity/multinode
Package multinode hosts parity scenarios that require a cyoda-go cluster — multiple cyoda-go subprocesses sharing the same backing storage.
|
Package multinode hosts parity scenarios that require a cyoda-go cluster — multiple cyoda-go subprocesses sharing the same backing storage. |
|
parity/postgres
Package postgres provides a BackendFixture that runs cyoda-go with the PostgreSQL storage backend (via testcontainers-go) and a compute-test-client subprocess connected via gRPC.
|
Package postgres provides a BackendFixture that runs cyoda-go with the PostgreSQL storage backend (via testcontainers-go) and a compute-test-client subprocess connected via gRPC. |
|
parity/scheduledfunction
Package scheduledfunction provides cross-backend parity scenarios for the scheduled-transition Function runtime (design docs/superpowers/specs/2026-07-17-scheduled-transition-function-design.md): the `schedule.function` transition shape, which computes its scheduledTime/timeoutMs by dispatching a generic Function callout to a gRPC calculation member rather than reading a static delayMs — must be byte-consistent across memory, sqlite, postgres, and (on its next dependency bump) the commercial backend.
|
Package scheduledfunction provides cross-backend parity scenarios for the scheduled-transition Function runtime (design docs/superpowers/specs/2026-07-17-scheduled-transition-function-design.md): the `schedule.function` transition shape, which computes its scheduledTime/timeoutMs by dispatching a generic Function callout to a gRPC calculation member rather than reading a static delayMs — must be byte-consistent across memory, sqlite, postgres, and (on its next dependency bump) the commercial backend. |
|
parity/scheduledtransition
Package scheduledtransition provides cross-backend parity scenarios for the scheduled-transition runtime (design doc §11, "P" column): the ScheduledTaskStore arm/upsert/reconcile/delete contract and the engine's fire/decline/expire/cancel behavior must be byte-consistent across memory, sqlite, postgres, and (on its next dependency bump) the commercial backend.
|
Package scheduledtransition provides cross-backend parity scenarios for the scheduled-transition runtime (design doc §11, "P" column): the ScheduledTaskStore arm/upsert/reconcile/delete contract and the engine's fire/decline/expire/cancel behavior must be byte-consistent across memory, sqlite, postgres, and (on its next dependency bump) the commercial backend. |
|
parity/sqlite
Package sqlite provides a BackendFixture that runs cyoda-go with the SQLite storage backend and a compute-test-client subprocess connected via gRPC.
|
Package sqlite provides a BackendFixture that runs cyoda-go with the SQLite storage backend and a compute-test-client subprocess connected via gRPC. |
|
internal
|
|
|
admin
Package admin provides the admin HTTP listener for /livez, /readyz, and /metrics.
|
Package admin provides the admin HTTP listener for /livez, /readyz, and /metrics. |
|
adminroute
Package adminroute names the HTTP routes that administer a model or its workflows.
|
Package adminroute names the HTTP routes that administer a model or its workflows. |
|
callout
Package callout holds the owner's loop: the one place that decides how often, where and for how long a processor, criterion or function callout is tried.
|
Package callout holds the owner's loop: the one place that decides how often, where and for how long a processor, criterion or function callout is tried. |
|
cluster/modelcache
Package modelcache caches LOCKED model descriptors per node, in front of the plugin's model store.
|
Package modelcache caches LOCKED model descriptors per node, in front of the plugin's model store. |
|
cluster/peeraddr
Package peeraddr validates cluster peer addresses against the SSRF guard.
|
Package peeraddr validates cluster peer addresses against the SSRF guard. |
|
clusterstatus
Package clusterstatus reports the state of the cluster's members.
|
Package clusterstatus reports the state of the cluster's members. |
|
common/commontest
Package commontest holds test-only helpers shared across domain packages.
|
Package commontest holds test-only helpers shared across domain packages. |
|
domain/consistency
Package consistency fences point-in-time reads with the store's consistency time: a read at an instant later than the consistency time is refused, and a read whose instant cyoda-go chooses uses a fresh one.
|
Package consistency fences point-in-time reads with the store's consistency time: a read at an instant later than the consistency time is refused, and a read whose instant cyoda-go chooses uses a fresh one. |
|
domain/model/ingest
Package ingest holds the checks every entity payload passes before it is stored, wherever the payload came from.
|
Package ingest holds the checks every entity payload passes before it is stored, wherever the payload came from. |
|
domain/model/schema/gentree
Package gentree produces random ModelNode trees and JSON-like values for property-based testing of the schema transformation pipeline.
|
Package gentree produces random ModelNode trees and JSON-like values for property-based testing of the schema transformation pipeline. |
|
domain/pagination
Package pagination holds the validation rules shared by paginated HTTP and gRPC endpoints, so every entry point that computes `offset = pageNumber * pageSize` enforces the same caps and catches the same int64 overflow before reaching storage.
|
Package pagination holds the validation rules shared by paginated HTTP and gRPC endpoints, so every entry point that computes `offset = pageNumber * pageSize` enforces the same caps and catches the same int64 overflow before reaching storage. |
|
domain/scheduledtask
Package scheduledtask serves GET /scheduled-tasks: the caller's tenant's view of its scheduled-transition tasks.
|
Package scheduledtask serves GET /scheduled-tasks: the caller's tenant's view of its scheduled-transition tasks. |
|
domain/txjoin
Package txjoin turns an inbound transaction routing token into a joined request of that transaction, run in a scope of its own, mapping verify/join failures to reusable operational error codes.
|
Package txjoin turns an inbound transaction routing token into a joined request of that transaction, run in a scope of its own, mapping verify/join failures to reusable operational error codes. |
|
domain/workflow
Package workflow — schema-version contract for the workflow-import DTO shape.
|
Package workflow — schema-version contract for the workflow-import DTO shape. |
|
e2e/errorcodematrix
Package errorcodematrix declares the entity error codes the API documents.
|
Package errorcodematrix declares the entity error codes the API documents. |
|
e2e/goroutinesafety
Package goroutinesafety holds a static guard over the E2E suite's own test sources: a *testing.T must not be used from a goroutine other than the one running the test, because Fatal/FailNow/Skip stop only the calling goroutine.
|
Package goroutinesafety holds a static guard over the E2E suite's own test sources: a *testing.T must not be used from a goroutine other than the one running the test, because Fatal/FailNow/Skip stop only the calling goroutine. |
|
e2e/openapivalidator
Package openapivalidator validates HTTP responses captured during E2E tests against the OpenAPI 3.1 spec embedded in github.com/cyoda/cyoda-go/api.
|
Package openapivalidator validates HTTP responses captured during E2E tests against the OpenAPI 3.1 spec embedded in github.com/cyoda/cyoda-go/api. |
|
e2e/servervalidation
Package servervalidation holds a static guard over the E2E suite's own test sources: every server the suite starts that serves the cyoda API sits behind the OpenAPI conformance validator (internal/e2e's validated helper), so that every response the suite receives is checked against the spec.
|
Package servervalidation holds a static guard over the E2E suite's own test sources: every server the suite starts that serves the cyoda API sits behind the OpenAPI conformance validator (internal/e2e's validated helper), so that every response the suite receives is checked against the spec. |
|
fence
Package fence decides, on the pnode that holds a transaction, whether a callback still comes from the compute node that currently holds a callout's work.
|
Package fence decides, on the pnode that holds a transaction, whether a callback still comes from the compute node that currently holds a callout's work. |
|
health
Package health holds the process-wide health latch.
|
Package health holds the process-wide health latch. |
|
httpmw
Package httpmw provides HTTP middleware for the Cyoda application server.
|
Package httpmw provides HTTP middleware for the Cyoda application server. |
|
lifecycle
Package lifecycle derives a node's lifecycle state from three one-way facts: the node finished starting, it began draining, and its health latch tripped.
|
Package lifecycle derives a node's lifecycle state from three one-way facts: the node finished starting, it began draining, and its health latch tripped. |
|
platformclock
Package platformclock holds the platform clock: the real and the test clock, the service that changes the test clock, its carriage between nodes (a change pushed to every peer, a joining node's adoption in the gossip join exchange), and the HTTP handler for /platform/clock.
|
Package platformclock holds the platform clock: the real and the test clock, the service that changes the test clock, its carriage between nodes (a change pushed to every peer, a joining node's adoption in the gossip join exchange), and the HTTP handler for /platform/clock. |
|
scheduler
Package scheduler runs scheduled transitions.
|
Package scheduler runs scheduled transitions. |
|
tenantroute
Package tenantroute is the /tenants/{tenant}/… route group: routes that address a tenant by name in their path.
|
Package tenantroute is the /tenants/{tenant}/… route group: routes that address a tenant by name in their path. |
|
testing/childproc
Package childproc records the long-lived child processes a test harness starts (cyoda-go nodes, compute test clients) and kills the ones that a test binary which died before its cleanup left running.
|
Package childproc records the long-lived child processes a test harness starts (cyoda-go nodes, compute test clients) and kills the ones that a test binary which died before its cleanup left running. |
|
testing/fakeclock
Package fakeclock provides a manually controlled clock for tests.
|
Package fakeclock provides a manually controlled clock for tests. |
|
testing/localproc
Package localproc provides an in-process ExternalProcessingService for testing.
|
Package localproc provides an in-process ExternalProcessingService for testing. |
|
testing/taskconflict
Package taskconflict gives tests a scheduled-task store that refuses chosen calls the way first-committer-wins does (spi.ErrConflict), and otherwise delegates to the real store.
|
Package taskconflict gives tests a scheduled-task store that refuses chosen calls the way first-committer-wins does (spi.ErrConflict), and otherwise delegates to the real store. |
|
testpg
Package testpg centralises the PostgreSQL testcontainer configuration shared by the E2E and parity test fixtures.
|
Package testpg centralises the PostgreSQL testcontainer configuration shared by the E2E and parity test fixtures. |
|
txcoord
Package txcoord coordinates the work done in one transaction: the owner's callouts, the callbacks that join the transaction under a callout's pass, and the ASYNC_NEW_TX processors that run inside it.
|
Package txcoord coordinates the work done in one transaction: the owner's callouts, the callbacks that join the transaction under a callout's pass, and the ASYNC_NEW_TX processors that run inside it. |
|
txcoord/txcoordtest
Package txcoordtest is a test double for the optional SPI capability spi.TransactionCoordinationCapable: a store factory over the memory plugin whose transactions are coordinated by a spi.TransactionCoordinator that follows the SPI's contract text.
|
Package txcoordtest is a test double for the optional SPI capability spi.TransactionCoordinationCapable: a store factory over the memory plugin whose transactions are coordinated by a spi.TransactionCoordinator that follows the SPI's contract text. |
|
txgate
Package txgate provides per-transaction exclusive gates with selective admission.
|
Package txgate provides per-transaction exclusive gates with selective admission. |
|
plugins
|
|
|
memory
module
|
|
|
postgres
module
|
|
|
sqlite
module
|
|
|
Package proto exposes the raw .proto source files as embedded strings for CLI consumption (cyoda help grpc proto).
|
Package proto exposes the raw .proto source files as embedded strings for CLI consumption (cyoda help grpc proto). |
|
scripts
|
|
|
testreport
command
Command testreport turns a `go test -json` stream into a per-package summary plus the verbatim output of anything that failed, and fails the run when a package that was required to execute tests did not execute any.
|
Command testreport turns a `go test -json` stream into a per-package summary plus the verbatim output of anything that failed, and fails the run when a package that was required to execute tests did not execute any. |
Click to show internal directories.
Click to hide internal directories.