Initial Commit of Matrix Handler

This commit is contained in:
2021-02-04 01:25:16 -06:00
parent d416d0d6f5
commit 1242858d84
263 changed files with 69605 additions and 0 deletions

38
cmd/svr/main.go Normal file
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()
}
}