amazon events published as server side event
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user