new client api

This commit is contained in:
aler9
2020-11-15 17:21:39 +01:00
parent b86fdca8b4
commit 65f6afcd9f
13 changed files with 927 additions and 611 deletions

View File

@@ -20,11 +20,11 @@ type ConnServerConf struct {
Conn net.Conn
// (optional) timeout of read operations.
// It defaults to 5 seconds
// It defaults to 10 seconds
ReadTimeout time.Duration
// (optional) timeout of write operations.
// It defaults to 5 seconds
// It defaults to 10 seconds
WriteTimeout time.Duration
// (optional) read buffer count.