mirror of
https://github.com/ManyakRus/crud_generator.git
synced 2024-12-22 00:36:41 +02:00
сделал TEMPLATE_FOLDERNAME_GRPC_NRPC
This commit is contained in:
parent
619a0b5244
commit
abc476711b
@ -77,6 +77,9 @@ TEMPLATE_FOLDERNAME_NRPC="pkg/network/nrpc"
|
||||
#TEMPLATE_FOLDERNAME_NRPC_CLIENT - foldr name for create nrpc client files
|
||||
TEMPLATE_FOLDERNAME_NRPC_CLIENT="pkg/network/nrpc/nrpc_client"
|
||||
|
||||
#TEMPLATE_FOLDERNAME_GRPC_NRPC - folder name for create grpc_nrpc.go file
|
||||
TEMPLATE_FOLDERNAME_GRPC_NRPC="pkg/network/grpc_nrpc"
|
||||
|
||||
#TEMPLATE_FOLDERNAME_CRUD_STARTER - folder name for create crud_starter.go file
|
||||
TEMPLATE_FOLDERNAME_CRUD_STARTER="pkg/crud_starter"
|
||||
|
||||
|
@ -28,6 +28,7 @@ type SettingsINI struct {
|
||||
TEMPLATE_FOLDERNAME_NRPC string
|
||||
TEMPLATE_FOLDERNAME_NRPC_SERVER string
|
||||
TEMPLATE_FOLDERNAME_NRPC_CLIENT string
|
||||
TEMPLATE_FOLDERNAME_GRPC_NRPC string
|
||||
TEMPLATE_SERVICE_NAME string
|
||||
TEMPLATE_FOLDERNAME_CRUD_STARTER string
|
||||
TEMPLATE_FOLDERNAME_ALIAS string
|
||||
@ -165,6 +166,7 @@ func FillSettings() {
|
||||
Settings.TEMPLATE_FOLDERNAME_DB = os.Getenv("TEMPLATE_FOLDERNAME_DB")
|
||||
Settings.TEMPLATE_FOLDER_CRUD_FUNCTIONS = os.Getenv("TEMPLATE_FOLDER_CRUD_FUNCTIONS")
|
||||
Settings.TEMPLATE_EXTERNAL_PROTO_FILENAME = os.Getenv("TEMPLATE_EXTERNAL_PROTO_FILENAME")
|
||||
Settings.TEMPLATE_FOLDERNAME_GRPC_NRPC = os.Getenv("TEMPLATE_FOLDERNAME_GRPC_NRPC")
|
||||
|
||||
}
|
||||
|
||||
|
@ -389,7 +389,7 @@ func FindCrudStarterURL() string {
|
||||
func Find_GRPC_NRPC_URL() string {
|
||||
Otvet := ""
|
||||
|
||||
Otvet = config.Settings.SERVICE_REPOSITORY_URL + "/pkg/network/grpc_nrpc"
|
||||
Otvet = config.Settings.SERVICE_REPOSITORY_URL + config.Settings.TEMPLATE_FOLDERNAME_GRPC_NRPC
|
||||
|
||||
return Otvet
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user