wsconfig

package
v0.0.0-...-efd9455 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 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 {
	SendMsgRateLimit RateLimitConfig
	Redis            redis.RedisConf
	rest.RestConf
	ImUserRpc zrpc.RpcClientConf
	MsgRpc    zrpc.RpcClientConf
	Websocket WebsocketConfig
}

type RateLimitConfig

type RateLimitConfig struct {
	Enable  bool
	Seconds int
	Quota   int
}

type WebsocketConfig

type WebsocketConfig struct {
	MaxConnNum int
	TimeOut    int
	MaxMsgLen  int
}

Jump to

Keyboard shortcuts

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