Initial Commit of Matrix Handler

This commit is contained in:
mattburchett committed 2021-02-04 01:25:16 -06:00
1 parent d416d0d6f5
commit 1242858d84
263 files changed
+69605

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
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()
}
}