rename framing to framer

This commit is contained in:
Joel Wetzell
2025-12-07 10:42:51 -06:00
parent 0bd43ca0c3
commit 5e7ebd1bf1
6 changed files with 12 additions and 12 deletions

View File

@@ -1,4 +1,4 @@
package framing
package framer
import (
"fmt"

View File

@@ -1,4 +1,4 @@
package framing
package framer
import (
"bytes"

View File

@@ -1,4 +1,4 @@
package framing
package framer
type SlipFramer struct {
buffer []byte

View File

@@ -9,7 +9,7 @@ import (
"time"
"github.com/jwetzell/showbridge-go/internal/config"
"github.com/jwetzell/showbridge-go/internal/framing"
"github.com/jwetzell/showbridge-go/internal/framer"
"github.com/jwetzell/showbridge-go/internal/route"
"go.bug.st/serial"
)
@@ -19,7 +19,7 @@ type SerialClient struct {
ctx context.Context
router route.RouteIO
Port string
Framer framing.Framer
Framer framer.Framer
Mode *serial.Mode
port serial.Port
}
@@ -53,7 +53,7 @@ func init() {
return nil, fmt.Errorf("misc.serial.client framing method must be a string")
}
framer, err := framing.GetFramer(framingMethodString)
framer, err := framer.GetFramer(framingMethodString)
if err != nil {
return nil, err

View File

@@ -8,13 +8,13 @@ import (
"time"
"github.com/jwetzell/showbridge-go/internal/config"
"github.com/jwetzell/showbridge-go/internal/framing"
"github.com/jwetzell/showbridge-go/internal/framer"
"github.com/jwetzell/showbridge-go/internal/route"
)
type TCPClient struct {
config config.ModuleConfig
framer framing.Framer
framer framer.Framer
conn *net.TCPConn
ctx context.Context
router route.RouteIO
@@ -65,7 +65,7 @@ func init() {
return nil, fmt.Errorf("net.tcp.client framing method must be a string")
}
framer, err := framing.GetFramer(framingMethodString)
framer, err := framer.GetFramer(framingMethodString)
if err != nil {
return nil, err

View File

@@ -12,14 +12,14 @@ import (
"time"
"github.com/jwetzell/showbridge-go/internal/config"
"github.com/jwetzell/showbridge-go/internal/framing"
"github.com/jwetzell/showbridge-go/internal/framer"
"github.com/jwetzell/showbridge-go/internal/route"
)
type TCPServer struct {
config config.ModuleConfig
Addr *net.TCPAddr
Framer framing.Framer
Framer framer.Framer
ctx context.Context
router route.RouteIO
quit chan interface{}
@@ -55,7 +55,7 @@ func init() {
return nil, fmt.Errorf("net.tcp.server framing method must be a string")
}
framer, err := framing.GetFramer(framingMethodString)
framer, err := framer.GetFramer(framingMethodString)
if err != nil {
return nil, err