Organize backend into product executable and shared Go modules
This commit is contained in:
1 parent
981e84a4b4
commit
f0720ec66b
382 files changed
+1944
-6989
No files matched your search
@@ -0,0 +1,21 @@
|
||||
// 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)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user