Documentation ¶
Index ¶
- type WSClient
- func (_m *WSClient) Close()
- func (_m *WSClient) Connect() error
- func (_m *WSClient) Receive() <-chan []byte
- func (_m *WSClient) ReceiveExt() <-chan *wsclient.WSPayload
- func (_m *WSClient) Send(ctx context.Context, message []byte) error
- func (_m *WSClient) SetHeader(header string, value string)
- func (_m *WSClient) SetURL(url string)
- func (_m *WSClient) URL() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSClient ¶
WSClient is an autogenerated mock type for the WSClient type
func NewWSClient ¶ added in v1.1.2
NewWSClient creates a new instance of WSClient. 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 (*WSClient) Close ¶
func (_m *WSClient) Close()
Close provides a mock function with given fields:
func (*WSClient) ReceiveExt ¶ added in v1.3.0
ReceiveExt provides a mock function with given fields:
func (*WSClient) SetHeader ¶ added in v1.3.0
SetHeader provides a mock function with given fields: header, value
Click to show internal directories.
Click to hide internal directories.