testcosmos

command
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 18 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package main is the Azure Container Apps runtime smoke binary for the protosource framework: it wires the example domain handlers (test/order/sample) against the Cosmos DB store and serves them via plain net/http using adapters/httpstandard. This is the Cosmos counterpart of cmd/testdynamo, which serves the same handlers via AWS Lambda.

The handler layer is provider-agnostic — only main() and the wire bindings differ between clouds. That is the cross-cloud parity guarantee the framework promises.

Run against the emulator:

export COSMOS_ENDPOINT=https://localhost:8081
export COSMOS_KEY='C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=='
export COSMOS_INSECURE=1
testcosmos-setup create
testcosmos        # listens on :8080

Jump to

Keyboard shortcuts

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