Allow transports to define their own ping mechanism

This commit is contained in:
Wichert Akkerman
2019-10-15 20:56:11 +02:00
committed by Mickaël Rémond
parent d0f2b492ac
commit 36e153f981
4 changed files with 25 additions and 2 deletions
+1
View File
@@ -25,6 +25,7 @@ type Transport interface {
IsSecure() bool
Ping() error
Read(p []byte) (n int, err error)
Write(p []byte) (n int, err error)
Close() error