Add message IDs, transport interface, client package, extract protocol headers
This commit is contained in:
9
lib/transport/transport.go
Normal file
9
lib/transport/transport.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package transport
|
||||
|
||||
import "time"
|
||||
|
||||
type Transport interface {
|
||||
Send(data []byte) error
|
||||
Receive(timeout time.Duration) ([]byte, error)
|
||||
Close() error
|
||||
}
|
||||
Reference in New Issue
Block a user