cosmetic: move packet i/o types from types.go into router.go
This commit is contained in:
1 parent
e82ed423c1
commit
44c8533632
2 files changed
+13
-15
No files matched your search
@@ -4,18 +4,3 @@ type Interaction struct {
|
||||
code int
|
||||
resultChan chan<- interface{}
|
||||
}
|
||||
|
||||
// Packet capture/inject interfaces
|
||||
|
||||
type PacketSource interface {
|
||||
ReadPacket() ([]byte, error)
|
||||
}
|
||||
|
||||
type PacketSink interface {
|
||||
WritePacket([]byte) error
|
||||
}
|
||||
|
||||
type PacketSourceSink interface {
|
||||
PacketSource
|
||||
PacketSink
|
||||
}
|
||||
Reference in new issue
Block a user