Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrLoginFailed used when login to Acroplia fails ErrLoginFailed = errors.New("login failed") // ErrLoginSpecify used when user doesn't supply any of credentials used by login ErrLoginSpecify = errors.New("you have to specify one of login methods, either by: phone, email, username or magic link") // ErrLoginPasswordRequired used when password is not supplied by user when performing login ErrLoginPasswordRequired = errors.New("password is required for login by email") )
View Source
var ( // ErrMessageFailed used when sending message to a user fails ErrMessageFailed = errors.New("sending message failed") // ErrMessageReceiver used when user didn't supply fullname and username ErrMessageReceiver = errors.New("fullname and username of receiver can't be empty") )
View Source
var ( // ErrTextpadFailed used when creating textpad in Acroplia fails ErrTextpadFailed = errors.New("creating textpad failed") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Debug bool
PathToLogFile string
PathToOutputFile string
Email string
Password string
Username string
Phone string
SeleniumPort string
SeleniumBrowser string
SeleniumOptions []string
TextpadTitle string
TextpadSubtitle string
MessageUsername string
MessageFullname string
MessageText string
MessageChatUUID string
}
Config is a struct that stores all config info
Click to show internal directories.
Click to hide internal directories.