How minhazur-rahman250/notification-service works
This is a Gin-based service for notifications, course search indexing, certificate issuance, and platform analytics. Clients call the registered HTTP routes; handlers validate requests, perform PostgreSQL operations, and return JSON, while certificate generation also writes a PDF. The course-index endpoint is documented as receiving updates from the NestJS application. The excerpts show the route wiring and handler-to-database behavior; no README is present, and no other integrations are established by the sampled source.
Main entry points: routes.go HTTP routes · search_handler.go Course search · notification_handler.go Notifications · certificate_handler.go Certificates
Components 14
Service entry
- Service startup
main.go - HTTP routes
routes/routes.go
Product handlers
- Notifications
handlers/notification_handler.go - Certificates
handlers/certificate_handler.go - Course search
handlers/search_handler.go - Analytics
handlers/analytics_handler.go
Domain models
- Notification data
models/notification.go - Certificate data
models/certificate.go - Course index data
models/course_index.go - Analytics data
models/analytics.go
Persistence
- Database setup
config/database.go - PostgreSQL
Other components
- HTTP clients
- NestJS course app
Connections 17
- HTTP clients → HTTP routes: send requests
routes/routes.go - NestJS course app → Course search: posts course index
handlers/search_handler.go - Service startup → Database setup: connects
main.go - Service startup → HTTP routes: registers
main.go - HTTP routes → Notifications: dispatches
routes/routes.go - HTTP routes → Certificates: dispatches
routes/routes.go - HTTP routes → Course search: dispatches
routes/routes.go - HTTP routes → Analytics: dispatches
routes/routes.go - Notifications → PostgreSQL: reads and writes
handlers/notification_handler.go - Certificates → PostgreSQL: reads and writes
handlers/certificate_handler.go - Course search → PostgreSQL: reads and writes
handlers/search_handler.go - Analytics → PostgreSQL: queries
handlers/analytics_handler.go - Database setup → PostgreSQL: creates tables
config/database.go - Notifications → Notification data: binds and returns
handlers/notification_handler.go - Certificates → Certificate data: binds and returns
handlers/certificate_handler.go - Course search → Course index data: binds and returns
handlers/search_handler.go - Analytics → Analytics data: returns
handlers/analytics_handler.go