Documentation
      ¶
    
    
  
    
  
    Index ¶
- type Protocol
 - type WebSocketServer
 - func (_m *WebSocketServer) Broadcast(ctx context.Context, stream string, payload interface{})
 - func (_m *WebSocketServer) Close()
 - func (_m *WebSocketServer) Handler(w http.ResponseWriter, r *http.Request)
 - func (_m *WebSocketServer) RoundTrip(ctx context.Context, stream string, payload wsserver.WSBatch) (*wsserver.WebSocketCommandMessage, error)
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Protocol ¶ added in v1.4.6
Protocol is an autogenerated mock type for the Protocol type
func NewProtocol ¶ added in v1.4.6
NewProtocol creates a new instance of Protocol. 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.
type WebSocketServer ¶
WebSocketServer is an autogenerated mock type for the WebSocketServer type
func NewWebSocketServer ¶
func NewWebSocketServer(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebSocketServer
    NewWebSocketServer creates a new instance of WebSocketServer. 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 (*WebSocketServer) Broadcast ¶ added in v1.4.6
func (_m *WebSocketServer) Broadcast(ctx context.Context, stream string, payload interface{})
Broadcast provides a mock function with given fields: ctx, stream, payload
func (*WebSocketServer) Close ¶
func (_m *WebSocketServer) Close()
Close provides a mock function with given fields:
func (*WebSocketServer) Handler ¶
func (_m *WebSocketServer) Handler(w http.ResponseWriter, r *http.Request)
Handler provides a mock function with given fields: w, r