EventService handles the store -> preview -> broadcast -> notify pipeline.
| 16 | |
| 17 | // EventService handles the store -> preview -> broadcast -> notify pipeline. |
| 18 | type EventService struct { |
| 19 | store event.Store |
| 20 | hub *ws.Hub |
| 21 | registry *module.Registry |
| 22 | metrics *metrics.Collector |
| 23 | db *sql.DB // optional; used to auto-register new project keys |
| 24 | } |
| 25 | |
| 26 | func NewEventService(store event.Store, hub *ws.Hub, registry *module.Registry, m *metrics.Collector, db *sql.DB) *EventService { |
| 27 | return &EventService{store: store, hub: hub, registry: registry, metrics: m, db: db} |
nothing calls this directly
no outgoing calls
no test coverage detected