MCPcopy Create free account

hub / github.com/GolangLessons/Read-Adviser-Bot / functions

Functions49 in github.com/GolangLessons/Read-Adviser-Bot

↓ 18 callersFunctionWrap
(msg string, err error)
lib/e/e.go:5
↓ 7 callersMethodSendMessage
(ctx context.Context, chatID int, text string)
clients/telegram/telegram.go:59
↓ 7 callersFunctionWrapIfErr
(msg string, err error)
lib/e/e.go:9
↓ 3 callersFunctionfileName
(p *storage.Page)
storage/files/files.go:131
↓ 2 callersMethodFilter
()
storage/mongo/mongo.go:120
↓ 2 callersMethodRemove
(ctx context.Context, p *Page)
storage/storage.go:16
↓ 2 callersMethoddoRequest
(ctx context.Context, method string, query url.Values)
clients/telegram/telegram.go:72
↓ 2 callersFunctiontoPage
(p *storage.Page)
storage/mongo/mongo.go:113
↓ 1 callersMethodFetch
(ctx context.Context, limit int)
events/type.go:6
↓ 1 callersMethodHash
()
storage/storage.go:27
↓ 1 callersMethodIsExists
(ctx context.Context, p *Page)
storage/storage.go:17
↓ 1 callersFunctionMustLoad
()
config/config.go:13
↓ 1 callersFunctionNew
(connectString string, connectTimeout time.Duration)
storage/mongo/mongo.go:31
↓ 1 callersFunctionNew
(client *telegram.Client, storage storage.Storage)
events/telegram/telegram.go:29
↓ 1 callersMethodPickRandom
(ctx context.Context, userName string)
storage/storage.go:15
↓ 1 callersMethodProcess
(ctx context.Context, e Event)
events/type.go:10
↓ 1 callersMethodSave
(ctx context.Context, p *Page)
storage/storage.go:14
↓ 1 callersMethodStart
()
consumer/consumer.go:4
↓ 1 callersMethodUpdates
(ctx context.Context, offset int, limit int)
clients/telegram/telegram.go:38
↓ 1 callersMethoddecodePage
(filePath string)
storage/files/files.go:115
↓ 1 callersMethoddoCmd
(ctx context.Context, text string, chatID int, username string)
events/telegram/commands.go:20
↓ 1 callersFunctionevent
(upd telegram.Update)
events/telegram/telegram.go:88
↓ 1 callersFunctionfetchText
(upd telegram.Update)
events/telegram/telegram.go:106
↓ 1 callersFunctionfetchType
(upd telegram.Update)
events/telegram/telegram.go:114
↓ 1 callersMethodhandleEvents
(ctx context.Context, events []events.Event)
consumer/event-consumer/event-consumer.go:48
↓ 1 callersFunctionisAddCmd
(text string)
events/telegram/commands.go:94
↓ 1 callersFunctionisURL
(text string)
events/telegram/commands.go:98
↓ 1 callersFunctionmeta
(event events.Event)
events/telegram/telegram.go:79
↓ 1 callersFunctionnewBasePath
(token string)
clients/telegram/telegram.go:34
↓ 1 callersMethodprocessMessage
(ctx context.Context, event events.Event)
events/telegram/telegram.go:66
↓ 1 callersMethodsavePage
(ctx context.Context, chatID int, pageURL string, username string)
events/telegram/commands.go:41
↓ 1 callersMethodsendHello
(ctx context.Context, chatID int)
events/telegram/commands.go:90
↓ 1 callersMethodsendHelp
(ctx context.Context, chatID int)
events/telegram/commands.go:86
↓ 1 callersMethodsendRandom
(ctx context.Context, chatID int, username string)
events/telegram/commands.go:68
MethodFetch
(ctx context.Context, limit int)
events/telegram/telegram.go:36
MethodIsExists
(_ context.Context, p *storage.Page)
storage/files/files.go:95
MethodIsExists
(ctx context.Context, storagePage *storage.Page)
storage/mongo/mongo.go:104
FunctionNew
(basePath string)
storage/files/files.go:23
FunctionNew
(fetcher events.Fetcher, processor events.Processor, batchSize int)
consumer/event-consumer/event-consumer.go:17
FunctionNew
(host string, token string)
clients/telegram/telegram.go:26
MethodPickRandom
(_ context.Context, userName string)
storage/files/files.go:56
MethodPickRandom
(ctx context.Context, userName string)
storage/mongo/mongo.go:65
MethodProcess
(ctx context.Context, event events.Event)
events/telegram/telegram.go:57
MethodRemove
(_ context.Context, p *storage.Page)
storage/files/files.go:78
MethodRemove
(ctx context.Context, storagePage *storage.Page)
storage/mongo/mongo.go:95
MethodSave
(_ context.Context, page *storage.Page)
storage/files/files.go:27
MethodSave
(ctx context.Context, page *storage.Page)
storage/mongo/mongo.go:53
MethodStart
()
consumer/event-consumer/event-consumer.go:25
Functionmain
()
main.go:20