Add message IDs, transport interface, client package, extract protocol headers
This commit is contained in:
@@ -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