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

28 lines
615 B
Plaintext
Raw Normal View History

package main
import (
2023-12-27 13:28:11 +02:00
configmain "github.com/ManyakRus/starter/config_main"
"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()
}