Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetConfig ¶
func SetConfig(conf WebsocketConfig)
Types ¶
type WebsocketConfig ¶
type WebsocketConfig struct { HandshakeTimeout uint `json:"handshake_timeout" yaml:"handshake_timeout" xml:"handshake_timeout"` AllowCrossOrigin bool `json:"allow_cross_origin" yaml:"allow_cross_origin" xml:"allow_cross_origin"` WebsocketWriterBufferSize uint `json:"websocket_writer_buffer_size" yaml:"websocket_writer_buffer_size" xml:"websocket_writer_buffer_size"` WebsocketReaderBufferSize uint `json:"websocket_reader_buffer_size" yaml:"websocket_reader_buffer_size" xml:"websocket_reader_buffer_size"` ServerMessageBufferSize uint `json:"server_message_buffer_size" yaml:"server_message_buffer_size" xml:"server_message_buffer_size"` AllowOriginDomains []string `json:"allow_origin_domains" yaml:"allow_origin_domains" xml:"allow_origin_domains"` }
func GetConfig ¶
func GetConfig() WebsocketConfig
Click to show internal directories.
Click to hide internal directories.