testcosmos

command
v0.3.3 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: 0

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