package
2.0.0-20210915055917-81cd71c11dd8
Repository: https://github.com/flowkeeper/flowserver.git
Documentation: pkg.go.dev
# Functions
AddAgent persists the specified agent in the database.
AddResults presists the specified results in the database.
ClearTriggerError calls PersistTriggerError with not error string.
Client returns the current mongodb client with a preselected database.
Connect connects to the mongodb and initializes the client.
Disconnect closes the connection to mongodb.
GetResults returns all results without limiting the resultsetPlease be aware that this can be slow if you are working with a large set of data.
GetResultsWithLimit returns the newest n-results.
PersistTriggerError sets the Error string for the trigger assignment.
SetTriggerAssignmentState sets the specified trigger assignment to problematic or unproblematic.
UpdateLock refreshes the lock for the specified agent.
# Variables
InstanceConfig gets loaded from the database upon calling Connect().