config

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL