elasticstream/main.go

24 lines
325 B
Go

package main
import (
"log"
"elasticstream/controller"
"github.com/gin-gonic/gin"
)
func main() {
log.SetFlags(log.LstdFlags | log.Lshortfile)
r := gin.Default()
r.GET("/open", controller.Open)
r.GET("/read", controller.Read)
r.GET("/ack", controller.Ack)
r.GET("/close", controller.Close)
r.Run(":8080")
}