2023-09-28 17:45:44 +03:00
|
|
|
package constants
|
|
|
|
|
2023-11-29 11:21:05 +03:00
|
|
|
const SERVICE_NAME = "crud_generator"
|
|
|
|
|
2023-09-28 17:45:44 +03:00
|
|
|
const TEXT_HELP = `
|
2023-11-15 13:58:31 +03:00
|
|
|
Need fill settings in settings.txt file
|
2023-09-28 17:45:44 +03:00
|
|
|
`
|
2023-09-28 18:08:00 +03:00
|
|
|
|
2023-11-01 17:34:57 +03:00
|
|
|
//const FolderTemplates string = "templates"
|
|
|
|
//
|
|
|
|
//const FolderReady string = "ready"
|
2023-10-25 14:52:49 +03:00
|
|
|
|
2023-10-25 16:22:30 +03:00
|
|
|
const FILE_PERMISSIONS = 0666
|
2023-11-15 13:58:31 +03:00
|
|
|
|
2024-01-15 13:19:27 +03:00
|
|
|
var TEMPLATES_FOLDER_NAME = "templates"
|
|
|
|
|
2023-11-15 13:58:31 +03:00
|
|
|
const CONFIG_FOLDER_NAME = "configs_"
|
2023-11-16 15:08:10 +03:00
|
|
|
|
|
|
|
const TemplateFilenameCrudGo = "crud.go_"
|
2023-11-16 18:07:59 +03:00
|
|
|
const TemplateFilenameCrudGoTest = "crud_test.go_"
|
2023-11-17 15:08:31 +03:00
|
|
|
|
2024-01-15 13:19:27 +03:00
|
|
|
//const SETTINGS_FOLDER_NAME = "templates/configs_"
|
2023-11-17 16:48:58 +03:00
|
|
|
|
|
|
|
const GENERATION_PROTO_FILENAME = "generation_code.sh"
|
2023-11-20 17:08:58 +03: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 18:11:21 +03:00
|
|
|
|
|
|
|
const STARTER_TABLES_FILENAME = "starter_tables.go_"
|
2024-02-08 18:01:03 +03: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 18:11:21 +03:00
|
|
|
const STARTER_TABLES_PREFIX = "crud_starter_"
|
2024-01-23 13:36:52 +03:00
|
|
|
const CRUD_TABLES_FREFIX = "crud_"
|
2024-02-08 18:01:03 +03:00
|
|
|
|
|
|
|
const MODEL_TABLE_MANUAL_FILENAME = "model_table_manual.go_"
|
2024-02-12 15:25:44 +03:00
|
|
|
const MODEL_TABLE_UPDATE_FILENAME = "model_table_update.go_"
|
2024-02-12 17:43:47 +03: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 15:47:52 +03: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 15:37:36 +03:00
|
|
|
|
|
|
|
const CRUD_TABLES_CACHE_FILENAME = "crud_table_cache.go_"
|
|
|
|
const CRUD_TABLES_CACHE_TEST_FILENAME = "crud_table_cache_test.go_"
|
2024-05-15 17:12:03 +03:00
|
|
|
const TEXT_CACHE_REMOVE = "cache.Remove("
|
2024-03-06 17:45:55 +03: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 15:35:08 +03:00
|
|
|
|
|
|
|
const TEXT_OTVET_ID_ALIAS = "Otvet.ID = ID"
|
2024-03-21 11:25:12 +03:00
|
|
|
const TEXT_CACHE_SIZE_1000 = "CACHE_SIZE"
|