aboutsummaryrefslogtreecommitdiff
path: root/hotline/transfer_test.go
AgeCommit message (Collapse)Author
2025-11-18Rename hotline.fileWrapper struct to hotline.FileJeff Halter
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-18Adopt more fixed size array types for struct fieldsJeff 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
2022-06-23Implement GetClientInfoText with per-client file transfer infoJeff Halter
2022-06-20Add initial support for resource and info forksJeff Halter
2022-06-05Implement some special case file descriptionsJeff Halter
2022-06-02Cleanup and backfill testsJeff Halter
2021-08-06Minor cleanup of transferJeff Halter
2021-07-28Move code to hotline dirJeff Halter