wsconfig

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	rest.RestConf
	ImUserRpc        zrpc.RpcClientConf
	MsgRpc           zrpc.RpcClientConf
	Websocket        WebsocketConfig
	SendMsgRateLimit RateLimitConfig
	Redis            redis.RedisConf
	RpcPort          int
}

type RateLimitConfig

type RateLimitConfig struct {
	Enable  bool
	Seconds int
	Quota   int
}

type WebsocketConfig

type WebsocketConfig struct {
	MaxConnNum     int
	TimeOut        int
	ReadBufferSize int
}

Jump to

Keyboard shortcuts

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