elasticstream/controller/close.go

20 lines
251 B
Go

package controller
import (
"net/http"
"github.com/gin-gonic/gin"
)
func Close(c *gin.Context) {
// Close connection
err := client.Teardown(c)
if err != nil {
c.Status(http.StatusInternalServerError)
return
}
c.Status(http.StatusOK)
}