basedef

package
v0.7.212 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

View Source
const BigFileLength = 4*1024*1024 - 1024

BigFileLength -if file length >= BigFileLength, the file is bigfile

View Source
const BigLogFileLength = 1 * 1024 * 1024

BigLogFileLength -if command log file length >= BigLogFileLength, the message is big message

View Source
const BigMsgLength = 4*1024*1024 - 1024

BigMsgLength -if jarvismsg length >= BigMsgLength, the message is big message

View Source
const NumsReconnectFailedServAddr = 3

NumsReconnectFailedServAddr - if the servaddr is failed, we will retry this number before it is marked as failed

View Source
const TimeClearEndMsgState = 15 * 60

TimeClearEndMsgState - If msg has already been processed, its end state will remain for a while, avoiding concurrent bugs.

View Source
const TimeFailedServAddr = 60

TimeFailedServAddr - if the servaddr is failed, we won't try to connect it within this time

View Source
const TimeMsgState = 60

TimeMsgState - Each time interval, it will check msgstate

View Source
const TimeReconnect = 30

TimeReconnect - If the LastConnectTime time is within 30s, we will not repeat the connection.

View Source
const VERSION = "0.7.212"

VERSION - jarviscore version

Variables

View Source
var LastTimeDeprecated = []int64{
	30,
	5 * 60,
	30 * 60,
	60 * 60,
	2 * 60 * 60,
	4 * 60 * 60,
	8 * 60 * 60,
	16 * 60 * 60,
	24 * 60 * 60,
}

LastTimeDeprecated - This is a constant about timestampDeprecated

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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