1
0
mirror of https://github.com/ManyakRus/crud_generator.git synced 2024-12-22 00:36:41 +02:00
crud_generator/bin/templates/cmd/main.go_

28 lines
615 B
Plaintext
Raw Normal View History

2023-11-14 17:03:01 +02:00
package main
import (
2023-12-27 13:28:11 +02:00
configmain "github.com/ManyakRus/starter/config_main"
2023-11-14 17:03:01 +02:00
"github.com/ManyakRus/starter/stopapp"
"gitlab.aescorp.ru/dsp_dev/claim/sync_service/pkg/crud_starter"
"github.com/ManyakRus/starter/postgres_gorm"
2023-11-14 17:03:01 +02:00
)
// main - старт приложения
func main() {
StartApp()
}
// StartApp - выполнение всех операций для старта приложения
func StartApp() {
configmain.LoadEnv()
stopapp.StartWaitStop()
crud_starter.InitCrudTransport_DB()
postgres_gorm.StartDB()
2023-11-15 10:43:15 +02:00
server_grpc.Start()
server_nrpc.Start()
2023-11-14 17:03:01 +02:00
stopapp.GetWaitGroup_Main().Wait()
}