22 lines
693 B
Go
22 lines
693 B
Go
// Adapted from Sendico api/edge/product/main.go; see PROVENANCE.md.
|
|
package main
|
|
|
|
import (
|
|
"git.sendico.io/tech/sxchnge/bff/edge/shared/appversion"
|
|
"git.sendico.io/tech/sxchnge/bff/edge/shared/server"
|
|
"git.sendico.io/tech/sxchnge/bff/internal/profile"
|
|
"git.sendico.io/tech/sxchnge/bff/pkg/mlogger"
|
|
application "git.sendico.io/tech/sxchnge/bff/pkg/server"
|
|
smain "git.sendico.io/tech/sxchnge/bff/pkg/server/main"
|
|
"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)
|
|
}
|
|
}
|