Discover Packages
github.com/rendis/opcode
examples
report-generator
directory
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Feb 11, 2026
License: MIT
Opens a new window with license information.
README
README
¶
Report Generator
Fetch sales, user, and system metrics data from three APIs in parallel, merge them into a unified report using a Go script, write to disk, and distribute via email API.
Param
Type
Required
Description
sales_api_url
string
yes
API endpoint for sales data
users_api_url
string
yes
API endpoint for user data
metrics_api_url
string
yes
API endpoint for system metrics
report_path
string
yes
File path to write the generated report
email_api_url
string
yes
API endpoint for sending email distribution
Steps
fetch-data (parallel: fetch-sales, fetch-users, fetch-metrics) -> merge-report -> write-report -> distribute-report
Features
Parallel HTTP GET for three data sources with retry
Go script for merging data into structured report format
fs.write to persist the report
HTTP POST to distribute the report via email API
Expand ▾
Collapse ▴
Directories
¶
merge.go - Reads JSON from stdin with sales, users, and metrics sections, merges them into a unified report format, and outputs the result.
merge.go - Reads JSON from stdin with sales, users, and metrics sections, merges them into a unified report format, and outputs the result.
Click to show internal directories.
Click to hide internal directories.