amazon events published as server side event

This commit is contained in:
2026-08-20 00:35:13 -06:00
parent 16ecf2dc66
commit 4748eda41e
9 changed files with 186 additions and 35 deletions
+4
View File
@@ -110,6 +110,10 @@ func (r *Router) RunSSE(ctx context.Context) error {
return r.sse.Start(ctx)
}
func (r *Router) GetSSEQueue() *sse.Queue {
return r.sse
}
func fileServer(urlPrefix, dir string, beforeServe func(c *gin.Context)) gin.HandlerFunc {
scfs := http.StripPrefix(urlPrefix, http.FileServer(http.Dir(dir)))
return func(c *gin.Context) {