elasticstream/main.go

20 lines
279 B
Go
Raw Normal View History

2024-10-07 15:25:13 +05:30
package main
import (
"elasticstream/controller"
"github.com/gin-gonic/gin"
)
func main() {
r := gin.Default()
r.GET("/open", controller.Open)
r.GET("/read", controller.Read)
r.GET("/ack", controller.Ack)
r.DELETE("/teardown", controller.Teardown)
r.Run(":8080")
}