ooni-probe-cli/internal/engine/experiment/ndt7/wsconn.go

18 lines
336 B
Go
Raw Permalink Normal View History

package ndt7
import (
"io"
"time"
"github.com/gorilla/websocket"
)
// weConn is the interface of gorilla/websocket.Conn
type wsConn interface {
NextReader() (int, io.Reader, error)
SetReadDeadline(time.Time) error
SetReadLimit(int64)
SetWriteDeadline(time.Time) error
WritePreparedMessage(*websocket.PreparedMessage) error
}