SYMBOL INDEX (77 symbols across 5 files) FILE: commands.go type Ctx (line 14) | type Ctx struct function cmdAuth (line 31) | func cmdAuth(ctx Ctx) (replayMsg string) { function cmdHelp (line 66) | func cmdHelp(ctx Ctx) (replayMsg string) { function cmdUser (line 119) | func cmdUser(ctx Ctx) { function cmdShell2telegramStat (line 147) | func cmdShell2telegramStat(ctx Ctx) (replayMsg string) { function cmdShell2telegramSearch (line 156) | func cmdShell2telegramSearch(ctx Ctx) (replayMsg string) { function cmdShell2telegramBan (line 171) | func cmdShell2telegramBan(ctx Ctx) (replayMsg string) { function cmdShell2telegramDesc (line 190) | func cmdShell2telegramDesc(ctx Ctx) (replayMsg string) { function cmdShell2telegramRm (line 204) | func cmdShell2telegramRm(ctx Ctx) (replayMsg string) { function cmdShell2telegramVersion (line 221) | func cmdShell2telegramVersion(_ Ctx) (replayMsg string) { function cmdShell2telegramExit (line 227) | func cmdShell2telegramExit(ctx Ctx) (replayMsg string) { function cmdShell2telegramBroadcastToRoot (line 238) | func cmdShell2telegramBroadcastToRoot(ctx Ctx) (replayMsg string) { function cmdShell2telegramMessageToUser (line 255) | func cmdShell2telegramMessageToUser(ctx Ctx) (replayMsg string) { FILE: shell2telegram.go constant version (line 21) | version = "1.10" constant DefaultBotTimeout (line 24) | DefaultBotTimeout = 60 constant MessagesQueueSize (line 27) | MessagesQueueSize = 10 constant MaxMessageLength (line 30) | MaxMessageLength = 4096 constant SecondsForAutoSaveUsersToDB (line 33) | SecondsForAutoSaveUsersToDB = 60 constant DBFileName (line 36) | DBFileName = "shell2telegram.json" constant cmdPlainText (line 39) | cmdPlainText = "/:plain_text" type Command (line 43) | type Command struct type Commands (line 51) | type Commands type Config (line 54) | type Config struct constant msgIsText (line 76) | msgIsText int8 = iota constant msgIsPhoto (line 77) | msgIsPhoto type BotMessage (line 81) | type BotMessage struct function getConfig (line 92) | func getConfig() (commands Commands, appConfig Config, err error) { function sendMessage (line 172) | func sendMessage(messageSignal chan<- BotMessage, chatID int, message []... function main (line 226) | func main() { FILE: users.go type User (line 16) | type User struct type Users (line 31) | type Users struct method AddNew (line 71) | func (users *Users) AddNew(tgbotMessage tgbotapi.Message) { method DoLogin (line 102) | func (users *Users) DoLogin(userID int, forRoot bool) string { method SetAuthorized (line 117) | func (users *Users) SetAuthorized(userID int, forRoot bool) { method IsValidCode (line 128) | func (users Users) IsValidCode(userID int, code string, forRoot bool) ... method IsAuthorized (line 139) | func (users Users) IsAuthorized(userID int) bool { method IsRoot (line 149) | func (users Users) IsRoot(userID int) bool { method BroadcastForRoots (line 159) | func (users Users) BroadcastForRoots(messageSignal chan<- BotMessage, ... method String (line 168) | func (users Users) String(userID int) string { method StringVerbose (line 177) | func (users Users) StringVerbose(userID int) string { method ClearOldUsers (line 191) | func (users *Users) ClearOldUsers() { method GetUserIDByName (line 203) | func (users Users) GetUserIDByName(userName string) int { method BanUser (line 216) | func (users *Users) BanUser(userID int) bool { method Search (line 233) | func (users Users) Search(query string) (result []int) { method FindByIDOrUserName (line 251) | func (users Users) FindByIDOrUserName(userName string) int { method SendMessageToPrivate (line 266) | func (users Users) SendMessageToPrivate(messageSignal chan<- BotMessag... method LoadFromDB (line 275) | func (users *Users) LoadFromDB(usersDBFile string) { method SaveToDB (line 298) | func (users *Users) SaveToDB(usersDBFile string) { type UsersDB (line 39) | type UsersDB struct constant SecondsForOldUsersBeforeVacuum (line 45) | SecondsForOldUsersBeforeVacuum = 1200 function NewUsers (line 48) | func NewUsers(appConfig Config) Users { FILE: utils.go constant codeBytesLength (line 25) | codeBytesLength = 15 function execShell (line 28) | func execShell(shellCmd, input string, varsNames []string, userID, chatI... function errChain (line 111) | func errChain(chainFuncs ...func() error) error { function splitStringHalfBySpace (line 122) | func splitStringHalfBySpace(str string) (one, two string) { function cleanUserName (line 133) | func cleanUserName(in string) string { function getRandomCode (line 138) | func getRandomCode() string { function parseBotCommand (line 149) | func parseBotCommand(pathRaw, shellCmd string) (path string, command Com... function stringIsEmpty (line 217) | func stringIsEmpty(str string) bool { function splitStringLinesBySize (line 223) | func splitStringLinesBySize(input string, maxSize int) []string { function createDirIfNeed (line 248) | func createDirIfNeed(dir string) { function getOsUserHomeDir (line 258) | func getOsUserHomeDir() string { function getDBFilePath (line 267) | func getDBFilePath(usersDBFile string, needCreateDir bool) (fileName str... function getShellAndParams (line 283) | func getShellAndParams(cmd string, customShell string, isWindows bool) (... type urlValue (line 306) | type urlValue struct method String (line 310) | func (v urlValue) String() string { method Set (line 317) | func (v urlValue) Set(s string) error { FILE: utils_test.go function Test_splitStringHalfBySpace (line 11) | func Test_splitStringHalfBySpace(t *testing.T) { function Test_cleanUserName (line 45) | func Test_cleanUserName(t *testing.T) { function Test_parseBotCommand (line 76) | func Test_parseBotCommand(t *testing.T) { function Test_stringIsEmpty (line 223) | func Test_stringIsEmpty(t *testing.T) { function Test_splitStringLinesBySize (line 257) | func Test_splitStringLinesBySize(t *testing.T) { function Test_getRandomCode (line 296) | func Test_getRandomCode(t *testing.T) { function Test_getOsUserHomeDir (line 303) | func Test_getOsUserHomeDir(t *testing.T) { function Test_errChain (line 314) | func Test_errChain(t *testing.T) { function Test_getShellAndParams (line 347) | func Test_getShellAndParams(t *testing.T) { function Test_flagURL (line 374) | func Test_flagURL(t *testing.T) {