31 lines
636 B
Go
31 lines
636 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
|
|
_ "github.com/gogf/gf/contrib/drivers/sqlite/v2"
|
|
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/os/gctx"
|
|
|
|
"git.5iot.com/iotlcm-public/iotlcm-worker-svr/internal/cmd"
|
|
_ "git.5iot.com/iotlcm-public/iotlcm-worker-svr/internal/packed"
|
|
)
|
|
|
|
var (
|
|
BuildVersion = "0.0"
|
|
BuildTime = ""
|
|
CommitID = ""
|
|
)
|
|
|
|
func main() {
|
|
ctx := gctx.GetInitCtx()
|
|
g.Log().Noticef(
|
|
ctx,
|
|
"iotlcm-worker-svr starting, version:%s, buildTime:%s, commitID:%s",
|
|
BuildVersion,
|
|
BuildTime,
|
|
CommitID,
|
|
)
|
|
cmd.Main.Run(ctx)
|
|
}
|