matrix-handler/cmd/svr/main.go

40 lines
658 B
Go
Raw Permalink Normal View History

2021-02-04 07:25:16 +00:00
package main
import (
"time"
"git.linuxrocker.com/mattburchett/matrix-handler/pkg/router"
"git.linuxrocker.com/mattburchett/matrix-handler/pkg/server"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/rs/zerolog/pkgerrors"
)
var (
start = time.Now()
version,
buildDate,
buildHost,
gitURL,
branch string
)
func main() {
zerolog.ErrorStackMarshaler = pkgerrors.MarshalStack
err := server.Run(&router.BuildInfo{
Start: start,
Version: version,
BuildDate: buildDate,
BuildHost: buildHost,
GitURL: gitURL,
Branch: branch,
})
if err != nil {
e := log.Fatal().Stack().Caller().Err(err)
e.Send()
}
2021-09-18 07:11:22 +00:00
2021-02-04 07:25:16 +00:00
}