odp-agent-discovery

command
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: MIT Imports: 15 Imported by: 0

README

ODP Agent discovery

This example uses the Go Agent package to inspect live ODP Services, list terse Offerings, and fetch each Offering's full details.

The example composes a mock directory from the reachable Service origins supplied on the command line. The mock is isolated in mock_directory.go; it is not the canonical ODP directory and does not imitate directory ranking, filtering, facets, or suggestions.

Start the small Service in one terminal:

go run ./examples/odp-service-small

Run the Agent in another:

go run ./examples/odp-agent-discovery

The Agent probes http://localhost:4101 by default. Supply one or more Service origins to query a different set:

go run ./examples/odp-agent-discovery \
  -service http://localhost:4101 \
  -service http://localhost:4102

Unreachable candidates are omitted before the mock directory is created. The output identifies the Service, prints its validated ODP Service Document, prints each terse Offering returned by catalog navigation, and then prints the corresponding full Offering response.

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