Commit Graph

33 Commits

Author SHA1 Message Date
1c2c4c1356 some small changes for auth scripts 2025-08-05 22:09:55 +03:00
5b32698ec5 some scripts changes 2025-08-05 18:37:58 +03:00
396352ba15 remove vendor 2025-08-04 16:38:05 +03:00
a72627d87c delete table creation 2025-08-04 13:38:27 +03:00
4a9719cdfb sqlite usage example 2025-08-04 13:36:38 +03:00
ce2a23f9e6 make internal modules in "internal" 2025-08-02 16:22:05 +03:00
e7289dc9be update post example 2025-08-02 11:50:19 +03:00
2f071c25b2 update annotations 2025-08-02 01:02:59 +03:00
d23fd32e84 update annotations 2025-08-02 01:01:05 +03:00
86d35a9ede update annotations 2025-08-02 00:55:59 +03:00
8684d178e0 update Get example 2025-08-01 23:54:44 +03:00
945ab6c9cf update annotations 2025-08-01 23:53:40 +03:00
9a274250cd update annotations 2025-08-01 23:25:46 +03:00
6d49d83ea7 update List.lua 2025-08-01 23:25:36 +03:00
30a87fdb4c update List.lua 2025-08-01 12:53:25 +03:00
b6ad0f82a0 add Post example 2025-07-31 21:47:09 +03:00
20bb90e77a oh again update Get example 2025-07-31 20:51:30 +03:00
148ca53538 update Net.Http.Get example 2025-07-31 20:46:02 +03:00
2951fd2da9 add Net.Http.Get usage example 2025-07-31 20:39:44 +03:00
f411637520 add Net.Http to lua 2025-07-31 20:37:31 +03:00
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
98d2443679 add some small changes 2025-07-30 12:00:21 +03:00
c61bc841e6 um add modernc/sqlite 2025-07-29 21:30:17 +03:00
1c73d3f87a add examples of lua scripts 2025-07-29 16:44:03 +03:00
alex
5bc334fd2c Fixing updates 2025-07-10 18:03:30 +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
2fdc32ce9f Refactor error handling and utility functions; remove deprecated code and improve logging 2025-07-05 16:05:03 +03:00
alex
d442871950 Refactor configuration and update handling:
- Modify .luarc.json to include global Lua scripts.
- Update Makefile to include LDFLAGS for versioning.
- Enhance node.go to implement version checking and update handling.
- Refactor Lua global variables in _globals.lua and echo.lua to use new structures.
- Remove deprecated http.lua and update config.yaml for TLS and update settings.
- Introduce new update.go for version management and update checking.
- Add tests for version comparison in update_test.go.
- Improve error handling in various server methods.
2025-07-03 22:38:05 +03:00
alex
96fb13e3c7 Refactor and restructure core components
- Removed obsolete files: `hanle_multi.go`, `logger.go`, `handle_com.go`, `handle_list.go`, `server.go`, and `utils.go` from the `general_server` and `sv1` packages.
- Introduced new implementations for the `GeneralServer` and `HandlerV1` in the `core` package, enhancing the overall architecture.
- Updated the `go.mod` and `go.sum` files to include new dependencies.
- Added a new configuration structure in `config.yaml` and `config.go` for better management of application settings.
- Implemented a Lua command handling mechanism in `handle_com.go` and `handle_list.go` for improved command execution.
- Enhanced logging capabilities with a new logger setup in `logger.go`.
- Added a new Lua script `http.lua` for handling HTTP requests.
2025-06-26 16:50:35 +03:00
alex
ef1efdd585 Implement TLS support: update configuration for TLS, modify server to handle HTTPS, and enhance logging for request handling 2025-06-24 22:15:37 +03:00
alex
973c060e5f Refactor echo functionality: add new echo implementation, remove deprecated echo?b1 file, and update preparation script 2025-06-23 13:47:59 +03:00
alex
241809025d Enhance server functionality: add versioning support, implement command handling improvements, and introduce new Lua scripts for command execution 2025-06-23 01:26:16 +03:00
alex
d3b2944cd8 first commit 2025-06-22 11:32:11 +03:00