Documentation
¶
Index ¶
- type Conn
- func (_m *Conn) Close() error
- func (_m *Conn) CloseHandler() func(int, string) error
- func (_m *Conn) EnableWriteCompression(enable bool)
- func (_m *Conn) LocalAddr() net.Addr
- func (_m *Conn) NextReader() (int, io.Reader, error)
- func (_m *Conn) NextWriter(messageType int) (io.WriteCloser, error)
- func (_m *Conn) PingHandler() func(string) error
- func (_m *Conn) PongHandler() func(string) error
- func (_m *Conn) ReadJSON(_a0 interface{}) error
- func (_m *Conn) ReadMessage() (int, []byte, error)
- func (_m *Conn) RemoteAddr() net.Addr
- func (_m *Conn) SetCloseHandler(h func(int, string) error)
- func (_m *Conn) SetCompressionLevel(level int) error
- func (_m *Conn) SetPingHandler(h func(string) error)
- func (_m *Conn) SetPongHandler(h func(string) error)
- func (_m *Conn) SetReadDeadline(t time.Time) error
- func (_m *Conn) SetReadLimit(limit int64)
- func (_m *Conn) SetWriteDeadline(t time.Time) error
- func (_m *Conn) Subprotocol() string
- func (_m *Conn) UnderlyingConn() net.Conn
- func (_m *Conn) WriteControl(messageType int, data []byte, deadline time.Time) error
- func (_m *Conn) WriteMessage(messageType int, data []byte) error
- func (_m *Conn) WritePreparedMessage(pm *gorillawebsocket.PreparedMessage) error
- type Upgrader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is an autogenerated mock type for the Conn type
func NewConn ¶
NewConn creates a new instance of Conn. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Conn) CloseHandler ¶
CloseHandler provides a mock function with no fields
func (*Conn) EnableWriteCompression ¶
EnableWriteCompression provides a mock function with given fields: enable
func (*Conn) NextReader ¶
NextReader provides a mock function with no fields
func (*Conn) NextWriter ¶
func (_m *Conn) NextWriter(messageType int) (io.WriteCloser, error)
NextWriter provides a mock function with given fields: messageType
func (*Conn) PingHandler ¶
PingHandler provides a mock function with no fields
func (*Conn) PongHandler ¶
PongHandler provides a mock function with no fields
func (*Conn) ReadMessage ¶
ReadMessage provides a mock function with no fields
func (*Conn) RemoteAddr ¶
RemoteAddr provides a mock function with no fields
func (*Conn) SetCloseHandler ¶
SetCloseHandler provides a mock function with given fields: h
func (*Conn) SetCompressionLevel ¶
SetCompressionLevel provides a mock function with given fields: level
func (*Conn) SetPingHandler ¶
SetPingHandler provides a mock function with given fields: h
func (*Conn) SetPongHandler ¶
SetPongHandler provides a mock function with given fields: h
func (*Conn) SetReadDeadline ¶
SetReadDeadline provides a mock function with given fields: t
func (*Conn) SetReadLimit ¶
SetReadLimit provides a mock function with given fields: limit
func (*Conn) SetWriteDeadline ¶
SetWriteDeadline provides a mock function with given fields: t
func (*Conn) Subprotocol ¶
Subprotocol provides a mock function with no fields
func (*Conn) UnderlyingConn ¶
UnderlyingConn provides a mock function with no fields
func (*Conn) WriteControl ¶
WriteControl provides a mock function with given fields: messageType, data, deadline
func (*Conn) WriteMessage ¶
WriteMessage provides a mock function with given fields: messageType, data
func (*Conn) WritePreparedMessage ¶
func (_m *Conn) WritePreparedMessage(pm *gorillawebsocket.PreparedMessage) error
WritePreparedMessage provides a mock function with given fields: pm
type Upgrader ¶
Upgrader is an autogenerated mock type for the Upgrader type
func NewUpgrader ¶
NewUpgrader creates a new instance of Upgrader. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.