Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BarkLogDao *models.BarkLogDao
Functions ¶
func KeepSavingLogs ¶ added in v1.1.0
func KeepSavingLogs()
KeepSavingLogs is a go routine to check channel length and commit to DB The routine decides whether a batch or single insert DB call of the logs is needed to be made. Further bifurcation of the batch sizes is done based on the incoming traffic and LogChannel capacity. If appRuntime.ShutdownRequested is set to true, the routine will send a batch of all the remaining logs in the LogChannel to the DB.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.