// Adapted from Sendico api/edge/product/main.go; see ../PROVENANCE.md. package main import ( application "git.sendico.io/tech/sxchnge/product/app/process" smain "git.sendico.io/tech/sxchnge/product/app/process/run" "git.sendico.io/tech/sxchnge/product/app/profile" "git.sendico.io/tech/sxchnge/product/app/server" "git.sendico.io/tech/sxchnge/product/app/version" "git.sendico.io/tech/sxchnge/shared/logging" "os" ) func factory(logger mlogger.Logger, file string, debug bool) (application.Application, error) { return server.Create(logger, file, debug, profile.Runtime()) } func main() { if smain.RunServer("sxchnge.bff", appversion.Create(), factory) != nil { os.Exit(1) } }