INNER CODE UNIT · Go
initServer
wso2/product-microgateway · adapter/cmd/adapter/main.go:40
func initServer() error {
return nil
}
// startMicroGateway reads the configuration files and then start the adapter components.
// Commandline arguments needs to be provided as args
func startMicroGateway(args []string) {
logger.Info("Starting Choreo Connect Adapter")
err := initServer()
if err != nil {
logger.Fatal("Error starting the adapter", err)
}
conf, errReadConfig := config.ReadConfigs()
if errReadConfig != nil {
logger.Fatal("Error loading configuration. ", errReadConfig)
}
adapter.Run(conf)