Documentation ¶
Overview ¶
Package ftime defines "fleetspeak time" as a global variable. This is the sense of time used by the fleetspeak server and it can be changed to support unit testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
ClientRetryTime determines how long to wait for an acknowledgement before sending a message to a client again. The normal implementation waits 15 minutes. It is mutable primarily to support testing.
var Now = time.Now
Now is the time used by the Fleetspeak system. Variable to support unit testing.
var ServerRetryTime = func(retryCount uint32) time.Time { delay := float64(time.Minute) * math.Pow(1.1, float64(retryCount)) delay *= 1.0 + rand.Float64() return Now().Add(time.Duration(delay)) }
ServerRetryTime determines how long to wait before attempting to process a message again on the FS server. The normal implementation provides exponential backoff with jitter, with an initial wait of 1-2 min. It is mutable primarily to support testing.
Functions ¶
This section is empty.
Types ¶
This section is empty.