programmable-distribution-ddex

command
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

README

Programmable Distribution Example (DDEX/ERN)

This example demonstrates programmable distribution using DDEX ERN. Same flow as the Entity Manager example, but uploads via DDEX instead of ManageEntity.

How it Works

  1. Uploads a demo track via DDEX ERN
  2. Runs an HTTP server that signs stream URLs via GetStreamURLs
  3. On GET /stream, signs and redirects to the content node's cidstream URL
  4. On GET /stream-no-signature, redirects without signature (returns 401 from node)

Setup

Start the local devnet:

make up

Usage

make example/programmable-distribution-ddex

Or with flags:

cd examples/programmable-distribution-ddex && go run . -validator node1.oap.devnet -port 8800

Testing

# Hit the worker, which signs and redirects to the stream
curl -L "http://localhost:8800/stream"

# No-signature route - redirects to node without signature (returns 401)
curl -L "http://localhost:8800/stream-no-signature"

Requirements

  • Running OpenAudio validator endpoint
  • Demo audio file is read from ../../pkg/integration_tests/assets/anxiety-upgrade.mp3

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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