elasticstream/main.go

24 lines
325 B
Go
Raw Normal View History

2024-10-07 15:25:13 +05:30
package main
import (
2024-10-07 16:49:36 +05:30
"log"
2024-10-07 15:25:13 +05:30
"elasticstream/controller"
"github.com/gin-gonic/gin"
)
func main() {
2024-10-07 16:49:36 +05:30
log.SetFlags(log.LstdFlags | log.Lshortfile)
2024-10-07 15:25:13 +05:30
r := gin.Default()
r.GET("/open", controller.Open)
r.GET("/read", controller.Read)
r.GET("/ack", controller.Ack)
2024-10-07 16:49:36 +05:30
r.GET("/close", controller.Close)
2024-10-07 15:25:13 +05:30
r.Run(":8080")
}