Commit Graph
172 Commits
Author SHA1 Message Date
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
alexey bd54628b5c remove unused regexp 2025-07-29 16:42:02 +03:00
alexey b103736a9d add resolveMethodPath to resolve giving methods 2025-07-29 16:41:45 +03:00
alexey 7eeedf0b31 remove listAllowedCmd regexp 2025-07-29 16:41:15 +03:00
alexey 1675001f24 add panic recover to run function 2025-07-29 13:34:41 +03:00
alexey e01ecdf1db add panic catch functions 2025-07-29 13:33:58 +03:00
alexey febee7cac5 add SafeFetch function 2025-07-29 12:44:25 +03:00
alexey bf5e136dc9 change sv1's Handle method 2025-07-29 11:28:04 +03:00
alexey 86cdc9adf2 remove header and status 2025-07-29 11:27:36 +03:00
alexey f09afdb850 add response and error constructors 2025-07-29 11:26:48 +03:00
alexey efbca43f27 make both Response and Error in one structure 2025-07-29 11:26:26 +03:00
alexey a0451aa8a0 add full jsonrpc-2.0 batch support 2025-07-29 11:25:48 +03:00
alexey 7608bcfed3 remove w and r fields from GatewayServer and change Handle method 2025-07-29 11:25:26 +03:00
alexey c62710a7d0 remove some garbage 2025-07-29 09:43:27 +03:00
alexey 0151c3f68a add test response using rpc.WriteResponse 2025-07-29 09:39:07 +03:00
alexey 1f36f2d7bc Move http write functions to writers.go 2025-07-29 09:33:03 +03:00
alexey ec94df5f4a Project structure refactor:
- Change package name general_server to gateway
- Changing the structure of directories and packages
- Adding vendor to the project
2025-07-28 20:16:40 +03:00
alexey 19b699d92b Make a make to ignore vendor files 2025-07-28 20:16:31 +03:00
alexey d5d73c1703 Add Taskfile.yml to .gitignore 2025-07-28 20:16:20 +03:00
alex 77baa1430e Initial commit: not functional 2025-07-25 11:31:53 +03:00
alex deef4a891b logs 2025-07-12 13:25:42 +03:00
alex aa45a2e3e4 Some changes with http server 2025-07-12 13:20:25 +03:00
alex 29d9f0487b Eliminating lint static checker's whining 2025-07-10 18:22:53 +03:00
alex ab8da05367 Fix README.md 2025-07-10 18:04:53 +03:00
alex 53572e4628 chore: remove tracked directory to apply .gitignore 2025-07-10 18:04:39 +03:00
alex 5bc334fd2c Fixing updates 2025-07-10 18:03:30 +03:00
alex e71d69f3f1 chore: add .meta/ to .gitignore 2025-07-09 01:24:49 +03:00
alex cbc9a554df chore: remove tracked directory to apply .gitignore 2025-07-09 01:24:39 +03:00
alex 3e03c39644 Update README to reflect command usage and response structure 2025-07-09 01:23:18 +03:00
alex 9919f77c90 Refactor core configuration and UUID handling
- Changed UUIDLength type from byte to int in core/config/consts.go
- Introduced MetaDir constant in core/config/consts.go
- Added corestate package with initial state management and UUID handling
- Implemented GetNodeUUID and SetNodeUUID functions for UUID file management
- Created RunManager and RunFileManager for runtime directory management
- Updated GeneralServer to use new configuration structure
- Removed deprecated init package and replaced with main entry point
- Added color utility functions for logging
- Enhanced UUID generation functions in utils package
- Updated update logic to handle new configuration structure
- Added routines for cleaning temporary runtime directories
- Introduced response formatting for API responses
2025-07-09 01:21:34 +03:00
alex 8d01314ded chore: remove tracked file to apply .gitignore 2025-07-08 23:55:14 +03:00
alex d78510e2e4 Update .gitignore to include cert/ and config.yaml 2025-07-08 23:53:43 +03:00
alex f90062efa7 Disable TLS in configuration 2025-07-06 09:13:57 +03:00
alex 90c7b1cd70 Enhance server update process with graceful shutdown; enable TLS in config and clean up temporary files during update 2025-07-06 09:13:37 +03:00
alex 66f3d12412 Implement automatic update functionality and improve server initialization; add NODE_PATH to Makefile, enhance logging, and update README 2025-07-05 22:13:16 +03:00
alex 2fdc32ce9f Refactor error handling and utility functions; remove deprecated code and improve logging 2025-07-05 16:05:03 +03:00
alex b70819e976 Add GeneralServer implementation for API request routing based on versioning 2025-07-05 15:04:39 +03:00
alex 7093183140 Fix directory tree representation in README.md to accurately reflect file count 2025-07-05 13:50:41 +03:00
alex b38e492e7e Update version string format in Makefile and code files to use 'v' prefix v0.0.1-dev 2025-07-05 12:56:53 +03:00