package
0.0.0-20241223090118-035fcd7fed56
Repository: https://github.com/ibiscum/hands-on-software-engineering-with-golang.git
Documentation: pkg.go.dev

# Functions

NewAggregator returns a new Aggregator instance that queries the providers at providerAddrs and returns back the results.
NewGateway returns a Gateway that retrieves quotes from a downstream aggregator listening at aggrAddr.
NewProvider returns a new Provider instance with the specified vendor ID.

# Structs

Aggregator collects and returns price quotes from a set of downstream providers.
Gateway simulates an API gateway that would handle requests from a front-end.
Provider simulates a vendor service that returns price quotes for an SKU.