mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-16 21:52:42 +02:00
30 lines
549 B
Go
30 lines
549 B
Go
package nrpc_client
|
|
|
|
import (
|
|
"github.com/ManyakRus/crud_generator/internal/config"
|
|
"github.com/ManyakRus/starter/log"
|
|
)
|
|
|
|
// CreateAllFiles - создаёт все файлы в папке grpc proto
|
|
func CreateAllFiles() error {
|
|
var err error
|
|
|
|
if config.Settings.NEED_CREATE_GRPC == false {
|
|
return err
|
|
}
|
|
|
|
err = CreateNRPCClient()
|
|
if err != nil {
|
|
log.Error("CreateNRPCClient() error: ", err)
|
|
return err
|
|
}
|
|
|
|
err = CreateNRPCClientTest()
|
|
if err != nil {
|
|
log.Error("CreateNRPCClientTest() error: ", err)
|
|
return err
|
|
}
|
|
|
|
return err
|
|
}
|