config

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: 4 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 {
	TokenRateLimiter RateLimitConfig
	zrpc.RpcServerConf
	RedisConfig            RedisConfig
	MysqlConfig            global.MysqlConfig
	TokenSecret            string          `json:",default=zeroimserver"`
	TokenRenewalDay        int64           `json:",default=30"` // 用户每次连接websocket 自动续签的的天数 默认30天
	MsgGatewayRpc          discov.EtcdConf `json:",optional"`
	MsgRpc                 zrpc.RpcClientConf
	MsgGatewayRpcK8sTarget string `json:",optional"`
}

type RateLimitConfig

type RateLimitConfig struct {
	Seconds int
	Quota   int
}

type RedisConfig

type RedisConfig struct {
	redis.RedisConf
	DB int
}

Jump to

Keyboard shortcuts

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