Refactor log implementation

- use []byte instead of unnecessary string conversions
- make LogManager.Broadcast private
- make LogManager.GetHistory public
- add tests
This commit is contained in:
Benson Wong
2024-10-31 12:16:54 -07:00
parent 0f133f5b74
commit 8cf2a389d8
4 changed files with 92 additions and 19 deletions

View File

@@ -9,6 +9,9 @@ all: mac linux simple-responder
clean:
rm -rf $(BUILD_DIR)
test:
go test -v ./proxy
# Build OSX binary
mac:
@echo "Building Mac binary..."