How nersus15/mini-proxy works
Mini Proxy is a Go HTTP reverse proxy that accepts SIMFASKES requests, routes resource operations to configured targets, and returns their responses. Its service also handles Satusehat credential generation, background credential delivery, and request idempotency; FHIR mapping and reference-updater modules support resource processing. The excerpts establish handler-to-service, service-to-HTTP-client, and service-to-repository responsibilities, but do not show the complete route, task, or processor wiring, so those connections are limited. The README emphasizes deployment platforms rather than additional runtime capabilities.
Main entry points: proxy.go Proxy service · module.go Proxy module · repository.go Proxy repository · http.go HTTP handlers
Components 15
Application runtime
- Application entry
webcore/main.go - Proxy module
modules/proxy/module.go - Proxy configuration
modules/proxy/config/config.go
Proxy and FHIR
- HTTP handlers
modules/proxy/handler/http.go - Proxy service
modules/proxy/service/proxy.go - FHIR mapping
modules/proxy/helper/processor/mapper.go - FHIR reference updates
modules/proxy/helper/processor/updater - HTTP client
modules/proxy/helper/utils/httpclient.go
State and tasks
- Proxy repository
modules/proxy/repository/repository.go - Persisted records
modules/proxy/entity/entity.go - Background tasks
modules/proxy/service/task.go - Database
External systems
- Satusehat API
- ILDKI endpoint
Other components
- SIMFASKES client
Connections 14
- Application entry → Proxy module: loads modules
- SIMFASKES client → HTTP handlers: sends HTTP
- HTTP handlers → Proxy service: calls operations
- Proxy service → HTTP client: sends requests
- Proxy service → Satusehat API: proxies requests
- Proxy service → ILDKI endpoint: forwards credentials
- Proxy service → Proxy repository: reads and writes
- Proxy repository → Database: queries records
- Proxy repository → Persisted records: persists
- FHIR mapping → FHIR reference updates: dispatches updates
- Proxy module → HTTP handlers: registers handlers
- Proxy module → Proxy service: wires service
- Proxy module → Proxy repository: wires repository
- Proxy service → Proxy configuration: uses settings