aboutsummaryrefslogtreecommitdiff
path: root/hotline/flattened_file_object.go
AgeCommit message (Collapse)Author
2025-11-18Replace hardcoded magic values with named constants and improve type safetyJeff Halter
Adds new constants for file format identifiers (FormatFILP), fork types (ForkTypeINFO), and platform identifiers (PlatformAMAC, PlatformMWIN) to improve code maintainability and readability. Changes FlatFileForkHeader.ForkType field from [4]byte to ForkType type alias for better compile-time type checking, matching the pattern used in ForkInfoList.Fork.
2024-07-17Extensive refactor, quality of life enhancementsJeff Halter
* Added ability to reload config, agreement, news, and user accounts without restarting the server by sending SIGHUP to the running process * Added ability to use modern unix or windows line breaks in Agreement.txt and MessageBoard.txt instead of classic MacOS `\r` breaks. * Extensive refactor towards swappable backends for the active server state * Extensive refactored towards making the hotline package generic and re-usable for alternate server implemenations * Fix bug where users whose accounts have been deleted would not be disconnected
2024-06-24Refactoring, cleanup, test backfillingJeff Halter
2024-06-18Adopt more fixed size array types for struct fieldsJeff Halter
2024-06-17Clean up various linter warningsJeff Halter
2024-06-17Fix io.Reader implementations and wrap more errorsJeff Halter
2024-06-15Refactoring and cleanupJeff Halter
* Split CLI client into separate project * Convert more functions to follow common Golang idioms e.g io.Reader, io.Writer * Use ldflags for versioning * Misc cleanup and simplification
2024-06-09Convert more bespoke methods to io.Reader/io.Writer interfacesJeff Halter
2023-04-19Ran 'golangci-lint run -E gocritic,whitespace --fix' 🤞Jeff Halter
2022-06-23Fix panic when commenting file without existing info forkJeff Halter
2022-06-20Add initial support for resource and info forksJeff Halter
2022-06-05Implement some special case file descriptionsJeff Halter
2022-06-05Handle zero length comment and file paths for Nostalgia compatibilityJeff Halter
2022-06-03Initial implementation of file transfer resumeJeff Halter
2022-05-30Fix and refactor file transfers to handle resource forksJeff Halter
2022-05-28Misc cleanupJeff Halter
* Removed some unnecessary user of pointers * Removed dead cruft * Reorganized code
2022-05-25Remove placeholder file commentJeff Halter
2022-05-25Add partial support for file create/modify timestampsJeff Halter
This replaces hardcoded placeholder create/modify timestamps with the real times, mostly. Create time is OS specific, so for now I'm ignoring it at using the modify time as a stand-in.
2022-05-25Add more file extension -> type/creator code mappingsJeff Halter
2022-05-24Fix file corruption bug for commented filesJeff Halter
This fixes a bug that happens when an uploaded file contains a file comment. The bug happens because the comment byte length was not included when calculating the length of the information header, causing the comment bytes to be appendedto the file.
2022-01-30Sanitize file path input to prevent directory traversalJeff Halter
2021-08-12More cleanupJeff Halter
2021-08-10Add tests and clean upJeff Halter
2021-07-28Move code to hotline dirJeff Halter