Documentation ¶
Index ¶
- func MakeWSConnection(t *testing.T, server *httptest.Server, path string) *websocket.Conn
- func NewWSServer(t *testing.T) *httptest.Server
- func SetChannelApiCallbacks(c *MockChannelApi)
- func SetupWebSocketServer(fh *FeedHub.FeedHub, mh *MessageHub.MessageHub, ...)
- type MockChannelApi
- type MockSendMessageService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeWSConnection ¶
func SetChannelApiCallbacks ¶
func SetChannelApiCallbacks(c *MockChannelApi)
func SetupWebSocketServer ¶
func SetupWebSocketServer(fh *FeedHub.FeedHub, mh *MessageHub.MessageHub, socketRoutes func(*gin.RouterGroup, *FeedHub.FeedHub, *MessageHub.MessageHub, int))
Types ¶
type MockChannelApi ¶
type MockSendMessageService ¶
type MockSendMessageService struct {
chanProto.UnimplementedMessageEventServiceServer
}
func (MockSendMessageService) SendMessageEvent ¶
func (s MockSendMessageService) SendMessageEvent(c context.Context, msg *msProto.InputMessage) (*msProto.Message, error)
Click to show internal directories.
Click to hide internal directories.