mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
29 lines
611 B
Plaintext
29 lines
611 B
Plaintext
package main
|
|
|
|
import (
|
|
configmain "github.com/ManyakRus/starter/config"
|
|
"github.com/ManyakRus/starter/stopapp"
|
|
"gitlab.aescorp.ru/dsp_dev/claim/sync_service/pkg/crud_starter"
|
|
"github.com/ManyakRus/starter/postgres_gorm"
|
|
)
|
|
|
|
// main - старт приложения
|
|
func main() {
|
|
StartApp()
|
|
}
|
|
|
|
// StartApp - выполнение всех операций для старта приложения
|
|
func StartApp() {
|
|
configmain.LoadEnv()
|
|
|
|
stopapp.StartWaitStop()
|
|
crud_starter.InitCrudTransport_DB()
|
|
postgres_gorm.StartDB()
|
|
server_grpc.Start()
|
|
server_nrpc.Start()
|
|
|
|
stopapp.GetWaitGroup_Main().Wait()
|
|
|
|
}
|
|
|