elasticstream/controller/teardown.go

20 lines
254 B
Go

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