mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-14 22:16:46 +00:00
14 lines
228 B
Go
14 lines
228 B
Go
package middleware
|
|
|
|
import (
|
|
"github.com/drone/drone/stream"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Stream() gin.HandlerFunc {
|
|
stream_ := stream.New()
|
|
return func(c *gin.Context) {
|
|
stream.ToContext(c, stream_)
|
|
c.Next()
|
|
}
|
|
}
|