internal/

directory
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0

Directories

Path Synopsis
Package admin provides the admin HTTP listener for /livez, /readyz, and /metrics.
Package admin provides the admin HTTP listener for /livez, /readyz, and /metrics.
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.
api
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.
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.
peeraddr
Package peeraddr validates cluster peer addresses against the SSRF guard.
Package peeraddr validates cluster peer addresses against the SSRF guard.
Package clusterstatus reports the state of the cluster's members.
Package clusterstatus reports the state of the cluster's members.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Package health holds the process-wide health latch.
Package health holds the process-wide health latch.
Package httpmw provides HTTP middleware for the Cyoda application server.
Package httpmw provides HTTP middleware for the Cyoda application server.
iam
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.
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.
Package scheduler runs scheduled transitions.
Package scheduler runs scheduled transitions.
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.
fakeclock
Package fakeclock provides a manually controlled clock for tests.
Package fakeclock provides a manually controlled clock for tests.
localproc
Package localproc provides an in-process ExternalProcessingService for testing.
Package localproc provides an in-process ExternalProcessingService for 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.
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.
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.
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.
Package txgate provides per-transaction exclusive gates with selective admission.
Package txgate provides per-transaction exclusive gates with selective admission.

Jump to

Keyboard shortcuts

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