Stream-decode msgpack responses instead of waiting for read timeout

This commit is contained in:
Ian Gulliver
2026-04-04 19:54:46 +09:00
parent f8e4249047
commit 43bf0fe951
3 changed files with 15 additions and 23 deletions

View File

@@ -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
}