You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
311 B
17 lines
311 B
package dtmsvr
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func Main() {
|
|
logrus.Printf("start dtmsvr")
|
|
gin.SetMode(gin.ReleaseMode)
|
|
app := gin.Default()
|
|
AddRoute(app)
|
|
StartConsumePreparedMsg(1)
|
|
StartConsumeCommitedMsg(1)
|
|
logrus.Printf("dtmsvr listen at: 8080")
|
|
go app.Run()
|
|
}
|
|
|