Stream-decode msgpack responses instead of waiting for read timeout
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package transport
|
||||
|
||||
import "time"
|
||||
import (
|
||||
"io"
|
||||
"time"
|
||||
)
|
||||
|
||||
type Transport interface {
|
||||
Send(data []byte) error
|
||||
Receive(timeout time.Duration) ([]byte, error)
|
||||
SetReadTimeout(timeout time.Duration)
|
||||
Reader() io.Reader
|
||||
Close() error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user