config

package
v1.1.2-pre Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config 配置,所有配置会同步到这里

Index

Constants

This section is empty.

Variables

View Source
var C = defaultConfig()

C 配置的单例

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	GetServiceRetrySeconds int
}

type ConnConfig

type ConnConfig struct {
	ReadTimeout int // 读一个数据包时的超时时间,用在一个数据包未读完时
}

ConnConfig 连接的config

type DispatchConfig

type DispatchConfig struct {
	AutoReConnection         bool // 断开连接时是否自动重新连接
	ConnectionIntervalSecond int  // 断连时重新连接的间隔时间
	ConnectionRetryCount     int  // 重试次数

	GetPingTime  time.Duration
	GetPongTime  time.Duration
	SendPingTime time.Duration
}

DispatchConfig dispatch的配置

type LogicConfig

type LogicConfig struct {
	RequestTimeOut int // 逻辑层中一个请求发来,等待响应时的超时时间
}

LogicConfig logic层的配置

Jump to

Keyboard shortcuts

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