package
0.0.0-20230605212826-f9f454f2a3f4
Repository: https://github.com/drakkar-software/metrics-server.git
Documentation: pkg.go.dev

# Functions

CompleteGetBots returns all data about all bots.
No description provided by the author
GenerateBotID generates a new bot id.
IsAuthorizedUser returns true if the given user (identified by API-Key) is authorized to get this level of info.
PublicGetCountBots returns the number of active bot until time.
RegisterOrUpdate updates a bot if already in database or registers a new bot called after few minutes a bot is running.
UpdateBotUptimeAndProfitability updates bot in argument upTime and profitability (using BotID).

# Variables

ErrBotNotFound is returned new a bot is not found in database.
ErrInvalidData is returned new a bot is invalid (ex: CurrentSession.StartedAt == 0).