Documentation ¶
Index ¶
- Variables
- func CompleteGetBots(history bool) (bot.Bots, error)
- func FetchTop(field string, traderType string, since int64, minimal int64, limit int64, ...) []bot.Top
- func GenerateBotID() (interface{}, error)
- func IsAuthorizedUser(apiKey string, accessLevel int8) bool
- func PublicGetCountBots(untilTime int64) (int64, error)
- func RegisterOrUpdate(uploadedBot *bot.Bot) (interface{}, error)
- func UpdateBotUptimeAndProfitability(uploadedBot *bot.Bot) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBotNotFound = errors.New("bot not found")
ErrBotNotFound is returned new a bot is not found in database
View Source
var ErrInvalidData = errors.New("invalid data")
ErrInvalidData is returned new a bot is invalid (ex: CurrentSession.StartedAt == 0)
Functions ¶
func CompleteGetBots ¶
CompleteGetBots returns all data about all bots
func IsAuthorizedUser ¶
IsAuthorizedUser returns true if the given user (identified by API-Key) is authorized to get this level of info
func PublicGetCountBots ¶
PublicGetCountBots returns the number of active bot until time
func RegisterOrUpdate ¶
RegisterOrUpdate updates a bot if already in database or registers a new bot called after few minutes a bot is running
func UpdateBotUptimeAndProfitability ¶
UpdateBotUptimeAndProfitability updates bot in argument upTime and profitability (using BotID)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.