Documentation ¶
Index ¶
Constants ¶
View Source
const ( // WebsocketResponseDefaultTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseDefaultTimeout = (3 * time.Second) // WebsocketResponseExtendedTimeout used in websocket testing // Defines wait time for receiving websocket response before cancelling WebsocketResponseExtendedTimeout = (15 * time.Second) // WebsocketChannelOverrideCapacity used in websocket testing // Defines channel capacity as defaults size can block tests WebsocketChannelOverrideCapacity = 10 )
This package is only to be referenced in test files
Variables ¶
This section is empty.
Functions ¶
func GetWebsocketInterfaceChannelOverride ¶
func GetWebsocketInterfaceChannelOverride() chan interface{}
GetWebsocketInterfaceChannelOverride returns a new interface based channel with the capacity set to WebsocketChannelOverrideCapacity
func GetWebsocketStructChannelOverride ¶
func GetWebsocketStructChannelOverride() chan struct{}
GetWebsocketStructChannelOverride returns a new struct based channel with the capacity set to WebsocketChannelOverrideCapacity
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.