Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GolangLessons/Read-Adviser-Bot
/ functions
Functions
49 in github.com/GolangLessons/Read-Adviser-Bot
⨍
Functions
49
◇
Types & classes
21
↓ 18 callers
Function
Wrap
(msg string, err error)
lib/e/e.go:5
↓ 7 callers
Method
SendMessage
(ctx context.Context, chatID int, text string)
clients/telegram/telegram.go:59
↓ 7 callers
Function
WrapIfErr
(msg string, err error)
lib/e/e.go:9
↓ 3 callers
Function
fileName
(p *storage.Page)
storage/files/files.go:131
↓ 2 callers
Method
Filter
()
storage/mongo/mongo.go:120
↓ 2 callers
Method
Remove
(ctx context.Context, p *Page)
storage/storage.go:16
↓ 2 callers
Method
doRequest
(ctx context.Context, method string, query url.Values)
clients/telegram/telegram.go:72
↓ 2 callers
Function
toPage
(p *storage.Page)
storage/mongo/mongo.go:113
↓ 1 callers
Method
Fetch
(ctx context.Context, limit int)
events/type.go:6
↓ 1 callers
Method
Hash
()
storage/storage.go:27
↓ 1 callers
Method
IsExists
(ctx context.Context, p *Page)
storage/storage.go:17
↓ 1 callers
Function
MustLoad
()
config/config.go:13
↓ 1 callers
Function
New
(connectString string, connectTimeout time.Duration)
storage/mongo/mongo.go:31
↓ 1 callers
Function
New
(client *telegram.Client, storage storage.Storage)
events/telegram/telegram.go:29
↓ 1 callers
Method
PickRandom
(ctx context.Context, userName string)
storage/storage.go:15
↓ 1 callers
Method
Process
(ctx context.Context, e Event)
events/type.go:10
↓ 1 callers
Method
Save
(ctx context.Context, p *Page)
storage/storage.go:14
↓ 1 callers
Method
Start
()
consumer/consumer.go:4
↓ 1 callers
Method
Updates
(ctx context.Context, offset int, limit int)
clients/telegram/telegram.go:38
↓ 1 callers
Method
decodePage
(filePath string)
storage/files/files.go:115
↓ 1 callers
Method
doCmd
(ctx context.Context, text string, chatID int, username string)
events/telegram/commands.go:20
↓ 1 callers
Function
event
(upd telegram.Update)
events/telegram/telegram.go:88
↓ 1 callers
Function
fetchText
(upd telegram.Update)
events/telegram/telegram.go:106
↓ 1 callers
Function
fetchType
(upd telegram.Update)
events/telegram/telegram.go:114
↓ 1 callers
Method
handleEvents
(ctx context.Context, events []events.Event)
consumer/event-consumer/event-consumer.go:48
↓ 1 callers
Function
isAddCmd
(text string)
events/telegram/commands.go:94
↓ 1 callers
Function
isURL
(text string)
events/telegram/commands.go:98
↓ 1 callers
Function
meta
(event events.Event)
events/telegram/telegram.go:79
↓ 1 callers
Function
newBasePath
(token string)
clients/telegram/telegram.go:34
↓ 1 callers
Method
processMessage
(ctx context.Context, event events.Event)
events/telegram/telegram.go:66
↓ 1 callers
Method
savePage
(ctx context.Context, chatID int, pageURL string, username string)
events/telegram/commands.go:41
↓ 1 callers
Method
sendHello
(ctx context.Context, chatID int)
events/telegram/commands.go:90
↓ 1 callers
Method
sendHelp
(ctx context.Context, chatID int)
events/telegram/commands.go:86
↓ 1 callers
Method
sendRandom
(ctx context.Context, chatID int, username string)
events/telegram/commands.go:68
Method
Fetch
(ctx context.Context, limit int)
events/telegram/telegram.go:36
Method
IsExists
(_ context.Context, p *storage.Page)
storage/files/files.go:95
Method
IsExists
(ctx context.Context, storagePage *storage.Page)
storage/mongo/mongo.go:104
Function
New
(basePath string)
storage/files/files.go:23
Function
New
(fetcher events.Fetcher, processor events.Processor, batchSize int)
consumer/event-consumer/event-consumer.go:17
Function
New
(host string, token string)
clients/telegram/telegram.go:26
Method
PickRandom
(_ context.Context, userName string)
storage/files/files.go:56
Method
PickRandom
(ctx context.Context, userName string)
storage/mongo/mongo.go:65
Method
Process
(ctx context.Context, event events.Event)
events/telegram/telegram.go:57
Method
Remove
(_ context.Context, p *storage.Page)
storage/files/files.go:78
Method
Remove
(ctx context.Context, storagePage *storage.Page)
storage/mongo/mongo.go:95
Method
Save
(_ context.Context, page *storage.Page)
storage/files/files.go:27
Method
Save
(ctx context.Context, page *storage.Page)
storage/mongo/mongo.go:53
Method
Start
()
consumer/event-consumer/event-consumer.go:25
Function
main
()
main.go:20