Commit Graph
100 Commits
Author SHA1 Message Date
alexey c08135309f add random salt and result/error checksum 2025-08-06 15:41:25 +03:00
alexey cd9e3ab6c4 remove phone_number from db query 2025-08-06 15:40:42 +03:00
alexey adaedf195f solve a little problem with array's fetching 2025-08-06 14:35:17 +03:00
alexey 87694f6654 make ConvertGolangTypesToLua simplier 2025-08-06 14:01:45 +03:00
alexey fe628e0f7f develop jwt auth for methods 2025-08-06 14:01:27 +03:00
alexey 3898e2833b fmt 2025-08-06 11:32:04 +03:00
alexey e4db8505a0 add sid 2025-08-06 11:31:42 +03:00
alexey 0c25d00171 add github.com/golang-jwt/jwt/v5 to the project 2025-08-06 11:31:33 +03:00
alexey b5a6de0b62 add jwt support 2025-08-06 11:31:14 +03:00
alexey 1d3d74846e rename database-sqlite to database.sqlite 2025-08-06 10:42:26 +03:00
alexey 0141427bfe add print to not allowed functions 2025-08-06 10:04:22 +03:00
alexey 866946646b delete some io.* writing functions 2025-08-06 09:58:40 +03:00
alexey 251e580e8a add headers lua runtime support 2025-08-05 23:15:13 +03:00
alexey c734779b69 rename lL to L 2025-08-05 22:11:29 +03:00
alexey 0923f32b46 make a get function on fetch params table fields 2025-08-05 22:10:15 +03:00
alexey 1c2c4c1356 some small changes for auth scripts 2025-08-05 22:09:55 +03:00
alexey d3eb483461 add com/_config.lua to .gitignore 2025-08-05 22:09:33 +03:00
alexey 5b32698ec5 some scripts changes 2025-08-05 18:37:58 +03:00
alexey 0ed734b2b1 fix sqlite import message 2025-08-04 16:49:33 +03:00
alexey 396352ba15 remove vendor 2025-08-04 16:38:05 +03:00
alexey 7b9bdcf768 add bcrypt module to lua 2025-08-04 16:37:54 +03:00
alexey 47058f0ddd move lua db to external file 2025-08-04 16:37:43 +03:00
alexey a72627d87c delete table creation 2025-08-04 13:38:27 +03:00
alexey 4a9719cdfb sqlite usage example 2025-08-04 13:36:38 +03:00
alexey 7de5ec5248 add sqlite support 2025-08-04 13:36:30 +03:00
alexey e5f9105364 change cors 2025-08-04 13:36:21 +03:00
alexey ce2a23f9e6 make internal modules in "internal" 2025-08-02 16:22:05 +03:00
alexey d56b022bf5 add com/test.lua to .gitignore 2025-08-02 16:13:22 +03:00
alexey ca38c10ec4 made creation of private field before pushing 2025-08-02 16:12:44 +03:00
alexey 13dbd00bb7 update config exaple 2025-08-02 16:12:08 +03:00
alexey e7289dc9be update post example 2025-08-02 11:50:19 +03:00
alexey 5394178abc update lua logging 2025-08-02 11:50:09 +03:00
alexey 981551e944 change default log output to stderr 2025-08-02 10:14:35 +03:00
alexey 27446adf3f add debug information to lua_handler and route 2025-08-02 10:04:00 +03:00
alexey 2f071c25b2 update annotations 2025-08-02 01:02:59 +03:00
alexey d23fd32e84 update annotations 2025-08-02 01:01:05 +03:00
alexey 86d35a9ede update annotations 2025-08-02 00:55:59 +03:00
alexey c77d51a95c some changes with config.log.output 2025-08-02 00:53:19 +03:00
alexey 3cbea14e84 fmt 2025-08-02 00:00:43 +03:00
alexey 6e59af1662 add json_format option for structure logging 2025-08-02 00:00:35 +03:00
alexey 8684d178e0 update Get example 2025-08-01 23:54:44 +03:00
alexey 945ab6c9cf update annotations 2025-08-01 23:53:40 +03:00
alexey 520901c331 update script error handling 2025-08-01 23:53:30 +03:00
alexey 9a274250cd update annotations 2025-08-01 23:25:46 +03:00
alexey 6d49d83ea7 update List.lua 2025-08-01 23:25:36 +03:00
alexey fb04b3bc46 change in/out to request/response 2025-08-01 23:25:24 +03:00
alexey a60b75a4c0 make lua deps modular 2025-08-01 23:18:45 +03:00
alexey 041fda8522 change ErrSessionIsTaken to EssSessionIsBusy 2025-08-01 20:07:15 +03:00
alexey 6508f03d08 fmt 2025-08-01 13:12:57 +03:00
alexey 93cf53025c rename init hooks names 2025-08-01 13:12:27 +03:00
alexey 83912b6c28 add context TODO 2025-08-01 12:56:09 +03:00
alexey 6ed5a7f9e0 add context to Handle method 2025-08-01 12:55:58 +03:00
alexey 2f78e9367c update logger initialization 2025-08-01 12:55:35 +03:00
alexey ac074ce0ff change mapstructure to output 2025-08-01 12:55:17 +03:00
alexey 8bdf9197d6 set default config value to stdout 2025-08-01 12:54:58 +03:00
alexey 4db8fa2360 change fallback os exit to 0 2025-08-01 12:54:41 +03:00
alexey 2a48927a08 update hooks 2025-08-01 12:54:28 +03:00
alexey 58027bb988 add config processing 2025-08-01 12:54:18 +03:00
alexey 30a87fdb4c update List.lua 2025-08-01 12:53:25 +03:00
alexey 5cdfb2a543 config confirmation 2025-08-01 00:56:05 +03:00
alexey 08e96aa32a add optional config preview with confirmation 2025-08-01 00:08:38 +03:00
alexey 3b8390a0c8 basically added session manager, minimal. stores uuid and ttl sessions to eliminate recursive queries 2025-07-31 23:29:30 +03:00
alexey b6ad0f82a0 add Post example 2025-07-31 21:47:09 +03:00
alexey 7009828e79 swap stages colors 2025-07-31 21:32:35 +03:00
alexey 45e541ac00 update Config structure and add node name parameter 2025-07-31 21:30:59 +03:00
alexey a5a7354061 add a small reminder 2025-07-31 20:56:25 +03:00
alexey 20bb90e77a oh again update Get example 2025-07-31 20:51:30 +03:00
alexey 148ca53538 update Net.Http.Get example 2025-07-31 20:46:02 +03:00
alexey 2951fd2da9 add Net.Http.Get usage example 2025-07-31 20:39:44 +03:00
alexey f411637520 add Net.Http to lua 2025-07-31 20:37:31 +03:00
alexey 75ee6e10aa change http server log level to LevelError 2025-07-31 19:48:06 +03:00
alexey cfa7724b68 add exception for unknown logging level 2025-07-30 20:16:49 +03:00
alexey f44e89b0de add new initialization hook to check configuration 2025-07-30 19:19:27 +03:00
alexey 23ed707029 make fields in configuration structures pointers, fix errors in code related to this change 2025-07-30 19:19:02 +03:00
alexey 299fd59e19 move %tmp% dereferencing to stage 6 of initialization, using a simpler and more efficient way of checking for contents 2025-07-30 19:17:36 +03:00
alexey b601962354 add TO DO to config/consts.go 2025-07-30 18:43:07 +03:00
alexey 38f784b850 remove unused server api settings 2025-07-30 18:41:50 +03:00
alexey 6d2bf5cdd2 add "about" to scripts
you can get a description if you send a request where in params there is a field about with any content
2025-07-30 18:32:38 +03:00
alexey 166c8470d4 add -ldflags "-w -s" and binary compression 2025-07-30 15:01:01 +03:00
alexey 64510a5307 remove stackTrimPaths from CatchPanic, and add -trimpath to Makefile 2025-07-30 14:51:29 +03:00
alexey b454f4de8d delete useless comment 2025-07-30 14:12:49 +03:00
alexey c161639766 move lua types converters from utils to sv1 2025-07-30 14:12:10 +03:00
alexey dd336a7d9a move lua types converters from utils to sv1 2025-07-30 14:11:57 +03:00
alexey ab37ecb7f7 add init hooks to nodeApp 2025-07-30 13:47:05 +03:00
alexey bd02f079ab rename sv1.HandleLUA to sv1.handleLUA 2025-07-30 12:50:12 +03:00
alexey b97febc16e move lua handler to new file lua_handler.go 2025-07-30 12:39:18 +03:00
alexey 149cfc0a17 sort imports 2025-07-30 12:38:53 +03:00
alexey 00276dc817 add hooks/ to fmt and goimports 2025-07-30 12:34:55 +03:00
alexey ec2ef34f23 move initial hooks and Compositor obj to external package 2025-07-30 12:34:30 +03:00
alexey aebc3d2e9b - move run hook to external package
- replace own contains function to slices.Contains
2025-07-30 12:33:51 +03:00
alexey 22ff90ca56 add db/ to .gitignore 2025-07-30 12:06:50 +03:00
alexey 98d2443679 add some small changes 2025-07-30 12:00:21 +03:00
alexey c61bc841e6 um add modernc/sqlite 2025-07-29 21:30:17 +03:00
alexey 74f166e6cf make use of AppX and CoreState in program modules 2025-07-29 17:54:57 +03:00
alexey 92c89996f5 remove some garbage 2025-07-29 16:46:23 +03:00
alexey 1c73d3f87a add examples of lua scripts 2025-07-29 16:44:03 +03:00
alexey e35972b8ad add initial support for lua scripts 2025-07-29 16:43:42 +03:00
alexey 0344d58ad4 add jsonrpc errors about methods 2025-07-29 16:43:23 +03:00
alexey cf7bd1ceec add panic reciever to the Gateway router 2025-07-29 16:43:03 +03:00
alexey c3540bfbe1 add CatchPanicWithFallback 2025-07-29 16:42:25 +03:00