config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsocketSetting

type WebsocketSetting struct {
	Enabled               bool  `json:"enabled"`
	BufferSize            int   `json:"bufferSize" yaml:"bufferSize"`
	MaxMessageSize        int64 `json:"maxMessageSize" yaml:"maxMessageSize"`
	PingPeriod            int   `json:"pingPeriod" yaml:"pingPeriod"`
	HeartbeatFailMaxTimes int   `json:"heartbeatFailMaxTimes" yaml:"heartbeatFialMaxTimes"`
	ReadDeadline          int   `json:"readDeadline" yaml:"readDeadline"`
	WriteDeadline         int   `json:"writeDeadline" yaml:"writeDeadline"`
}
var Setting *WebsocketSetting = &WebsocketSetting{
	Enabled:               false,
	BufferSize:            20480,
	MaxMessageSize:        65535,
	PingPeriod:            20,
	HeartbeatFailMaxTimes: 4,
	ReadDeadline:          100,
	WriteDeadline:         35,
}

Jump to

Keyboard shortcuts

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