How akene-uzezi/protocolfortimer works
Protocol Fortimer is a small Go library for encoding and decoding a custom binary message format. An application can encode a versioned message to an io.Writer, or decode one from an io.Reader; the protocol implementation validates the header and payload size. The client and server packages contain only package comments in the provided excerpts, so no client/server workflow is evidenced.
Main entry points: protocol.go Message encoder
Components 5
Other components
- Application
- Message encoder
pkg/protocol/protocol.go - Output writer
- Input reader
- Message decoder
pkg/protocol/protocol.go
Connections 4
- Application → Message encoder: encodes message
- Message encoder → Output writer: writes bytes
pkg/protocol/protocol.go - Input reader → Message decoder: supplies bytes
pkg/protocol/protocol.go - Message decoder → Application: returns message