don't export module/processor/framer registrations

This commit is contained in:
Joel Wetzell
2026-05-26 17:27:35 -05:00
parent 0ff212742a
commit 80f8152dfb
77 changed files with 299 additions and 258 deletions
+7 -7
View File
@@ -1,14 +1,14 @@
package framer
type SlipFramer struct {
type slipFramer struct {
buffer []byte
}
func NewSlipFramer() *SlipFramer {
return &SlipFramer{buffer: []byte{}}
func newSlipFramer() *slipFramer {
return &slipFramer{buffer: []byte{}}
}
func (sf *SlipFramer) Decode(data []byte) [][]byte {
func (sf *slipFramer) Decode(data []byte) [][]byte {
messages := [][]byte{}
END := byte(0xc0)
@@ -49,7 +49,7 @@ func (sf *SlipFramer) Decode(data []byte) [][]byte {
return messages
}
func (sf *SlipFramer) Encode(data []byte) []byte {
func (sf *slipFramer) Encode(data []byte) []byte {
END := byte(0xc0)
ESC := byte(0xdb)
ESC_END := byte(0xdc)
@@ -72,10 +72,10 @@ func (sf *SlipFramer) Encode(data []byte) []byte {
return encodedBytes
}
func (sf *SlipFramer) Clear() {
func (sf *slipFramer) Clear() {
sf.buffer = []byte{}
}
func (sf *SlipFramer) Buffer() []byte {
func (sf *slipFramer) Buffer() []byte {
return sf.buffer
}