Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogPrefix ¶
GetLogPrefix from botName
Types ¶
type Bot ¶
type Bot struct { Name string `json:"name"` Strategy string `json:"strategy"` Running bool `json:"running"` Test bool `json:"test"` Warnings uint16 `json:"warnings"` Errors uint16 `json:"errors"` }
Bot represents a kelp bot instance
func FromFilenames ¶
FromFilenames creates a Bot representing the bot that uses the provided filenames
func (*Bot) Filenames ¶
func (b *Bot) Filenames() *FilenamePair
Filenames where we should save bot config file
type FilenamePair ¶
FilenamePair represents the two config filenames associated with a bot
func GetBotFilenames ¶
func GetBotFilenames(botName string, strategy string) *FilenamePair
GetBotFilenames from botName
Click to show internal directories.
Click to hide internal directories.