2023-09-28 16:45:44 +02:00
|
|
|
package constants
|
|
|
|
|
2023-11-29 10:21:05 +02:00
|
|
|
const SERVICE_NAME = "crud_generator"
|
|
|
|
|
2023-09-28 16:45:44 +02:00
|
|
|
const TEXT_HELP = `
|
2023-11-15 12:58:31 +02:00
|
|
|
Need fill settings in settings.txt file
|
2023-09-28 16:45:44 +02:00
|
|
|
`
|
2023-09-28 17:08:00 +02:00
|
|
|
|
2023-11-01 16:34:57 +02:00
|
|
|
//const FolderTemplates string = "templates"
|
|
|
|
//
|
|
|
|
//const FolderReady string = "ready"
|
2023-10-25 13:52:49 +02:00
|
|
|
|
2023-10-25 15:22:30 +02:00
|
|
|
const FILE_PERMISSIONS = 0666
|
2023-11-15 12:58:31 +02:00
|
|
|
|
2024-01-15 12:19:27 +02:00
|
|
|
var TEMPLATES_FOLDER_NAME = "templates"
|
|
|
|
|
2023-11-15 12:58:31 +02:00
|
|
|
const CONFIG_FOLDER_NAME = "configs_"
|
2023-11-16 14:08:10 +02:00
|
|
|
|
|
|
|
const TemplateFilenameCrudGo = "crud.go_"
|
2023-11-16 17:07:59 +02:00
|
|
|
const TemplateFilenameCrudGoTest = "crud_test.go_"
|
2023-11-17 14:08:31 +02:00
|
|
|
|
2024-01-15 12:19:27 +02:00
|
|
|
//const SETTINGS_FOLDER_NAME = "templates/configs_"
|
2023-11-17 15:48:58 +02:00
|
|
|
|
|
|
|
const GENERATION_PROTO_FILENAME = "generation_code.sh"
|
2023-11-20 16:08:58 +02:00
|
|
|
|
|
|
|
const GRPC_CLIENT_FILENAME = "grpc_client.go"
|
|
|
|
const GRPC_CLIENT_TEST_FILENAME = "grpc_client_test.go"
|
|
|
|
|
|
|
|
const NRPC_CLIENT_FILENAME = "nrpc_client.go"
|
|
|
|
const NRPC_CLIENT_TEST_FILENAME = "nrpc_client_test.go"
|
|
|
|
|
|
|
|
const NRPC_CLIENT_TABLE_FILENAME = "nrpc_client_table.go"
|
|
|
|
const NRPC_CLIENT_TABLE_TEST_FILENAME = "nrpc_client_table_test.go"
|
|
|
|
|
|
|
|
const SERVER_GRPC_STARTER_FILENAME = "server_grpc_starter.go"
|
|
|
|
const SERVER_GRPC_FUNC_FILENAME = "server_grpc_func.go"
|
|
|
|
|
|
|
|
const MAKEFILE_FILENAME = "Makefile"
|
|
|
|
const ENV_FILENAME = ".env"
|
2024-01-09 17:11:21 +02:00
|
|
|
|
|
|
|
const STARTER_TABLES_FILENAME = "starter_tables.go_"
|
2024-02-08 17:01:03 +02:00
|
|
|
const STARTER_TABLES_TEST_FILENAME = "starter_tables_test.go_"
|
|
|
|
const STARTER_TABLES_MANUAL_FILENAME = "starter_tables_manual.go_"
|
|
|
|
const STARTER_TABLES_TEST_MANUAL_FILENAME = "starter_tables_manual_test.go_"
|
2024-01-09 17:11:21 +02:00
|
|
|
const STARTER_TABLES_PREFIX = "crud_starter_"
|
2024-01-23 12:36:52 +02:00
|
|
|
const CRUD_TABLES_FREFIX = "crud_"
|
2024-02-08 17:01:03 +02:00
|
|
|
|
|
|
|
const MODEL_TABLE_MANUAL_FILENAME = "model_table_manual.go_"
|
2024-02-12 14:25:44 +02:00
|
|
|
const MODEL_TABLE_UPDATE_FILENAME = "model_table_update.go_"
|
2024-02-12 16:43:47 +02:00
|
|
|
|
|
|
|
const SERVER_GRPC_TABLE_UPDATE_FUNC_FILENAME = "server_grpc_table_update_func.go_"
|
|
|
|
const SERVER_GRPC_TABLE_UPDATE_FUNC_TEST_FILENAME = "server_grpc_table_update_func_test.go_"
|
2024-02-13 14:47:52 +02:00
|
|
|
|
|
|
|
const GRPC_CLIENT_TABLE_UPDATE_FUNC_FILENAME = "grpc_client_table_update_func.go_"
|
|
|
|
const GRPC_CLIENT_TABLE_UPDATE_FUNC_TEST_FILENAME = "grpc_client_table_update_func_test.go_"
|
2024-03-06 14:37:36 +02:00
|
|
|
|
|
|
|
const CRUD_TABLES_CACHE_FILENAME = "crud_table_cache.go_"
|
|
|
|
const CRUD_TABLES_CACHE_TEST_FILENAME = "crud_table_cache_test.go_"
|
2024-05-15 16:12:03 +02:00
|
|
|
const TEXT_CACHE_REMOVE = "cache.Remove("
|
2024-03-06 16:45:55 +02:00
|
|
|
|
|
|
|
const SERVER_GRPC_TABLE_CACHE_FILENAME = "server_grpc_table_cache.go_"
|
|
|
|
const SERVER_GRPC_TABLE_CACHE_TEST_FILENAME = "server_grpc_table_cache_test.go_"
|
2024-03-12 14:35:08 +02:00
|
|
|
|
2024-06-20 17:14:47 +02:00
|
|
|
const TEXT_OTVET_ID_ALIAS = "Otvet.ID = AliasFromInt(ID)" //"Otvet.ID = ID"
|
2024-03-21 10:25:12 +02:00
|
|
|
const TEXT_CACHE_SIZE_1000 = "CACHE_SIZE"
|