Rework transports

This commit is contained in:
Bolke de Bruin
2020-07-20 12:24:40 +02:00
parent ba679b1266
commit 9209f9152d
4 changed files with 166 additions and 58 deletions

8
transport/transport.go Normal file
View File

@@ -0,0 +1,8 @@
package transport
type HttpLayer interface {
ReadPacket() (n int, p []byte, err error)
WritePacket(b []byte) (n int, err error)
Close() error
}