MCPcopy Index your code

hub / github.com/rusq/slackdump / functions

Functions4,254 in github.com/rusq/slackdump

↓ 4 callersMethodfilename
filename returns the full path of the chunk file with the given fileID.
internal/chunk/directory.go:378
↓ 4 callersFunctiongt
(l,c,e,u,f)
internal/viewer/static/htmx.min.js:1
↓ 4 callersFunctionhn
(n,e)
internal/viewer/static/htmx.min.js:1
↓ 4 callersFunctionisHXRequest
(r *http.Request)
internal/viewer/handlers.go:640
↓ 4 callersFunctionisNonCriticalErr
(e error)
stream/conversation.go:448
↓ 4 callersMethoditems
()
cmd/slackdump/internal/ui/dumpui/dumpui.go:75
↓ 4 callersMethodlogRateLimitInfo
logRateLimitInfo logs GitHub API rate limit information from response headers.
cmd/slackdump/internal/diag/updater/github/github.go:201
↓ 4 callersFunctionmakeCacheFilename
makeCacheFilename converts filename.ext to filename-suffix.ext.
internal/cache/cache.go:29
↓ 4 callersFunctionmergeSourceFiles
()
cmd/slackdump/internal/diag/merge_test.go:609
↓ 4 callersFunctionminifyJSON
minifyJSON removes all spaces and newlines from the JSON string.
internal/chunk/backend/dbase/repository/dbmessage_test.go:36
↓ 4 callersMethodnewFileHandler
(fn func(w http.ResponseWriter, r *http.Request, id string))
internal/viewer/handlers.go:629
↓ 4 callersFunctionnewThreadCache
(sz int)
source/export_cache.go:86
↓ 4 callersMethodoffsets
offsets returns all offsets for the given id.
internal/chunk/file.go:158
↓ 4 callersFunctionorNil
orNil returns a pointer to the value if cond is true, otherwise nil.
internal/chunk/backend/dbase/split.go:85
↓ 4 callersMethodpathFunc
pathFunc returns effective path function.
internal/redownload/redownload.go:104
↓ 4 callersMethodprocessChannel
(ctx context.Context, ch *slack.Channel, cb func(item *dlItem) error)
internal/redownload/redownload.go:212
↓ 4 callersFunctionprompt
(w io.Writer, prompt string, readlnFn func(*os.File) (string, error))
auth/auth_ui/cli.go:116
↓ 4 callersFunctionrn
(e,t)
internal/viewer/static/htmx.min.js:1
↓ 4 callersFunctionrt
(e)
internal/viewer/static/htmx.min.js:1
↓ 4 callersFunctionrunDedupeAfterFinish
(ctx context.Context, conn *sqlx.DB, dir string, enabled bool)
cmd/slackdump/internal/resume/resume.go:277
↓ 4 callersFunctionrunWorkers
runWorkers coordinates the workers that fetch the data from the API and process it. It runs the workers in parallel and waits for all of them to fini
internal/chunk/control/runner.go:120
↓ 4 callersFunctionsaveManifest
(manifest)
contrib/replit_drive_backup/drive-upload-folder.mjs:339
↓ 4 callersMethodsaveProvider
saveProvider saves the provider to the file, no questions asked.
internal/cache/manager.go:199
↓ 4 callersMethodscanChannel
(ctx context.Context, ch *slack.Channel)
internal/redownload/redownload.go:238
↓ 4 callersMethodscanMsgs
scanMsgs scans messages msgs, calling itself recursively for every thread, collecting all files that are not present on the file system.
internal/redownload/redownload.go:255
↓ 4 callersFunctionseqOf
seqOf returns an iter.Seq2[slack.Message, error] that yields the given messages in order.
internal/mcp/tools_test.go:36
↓ 4 callersFunctionsized
(t *testing.T, m *Model, w, h int)
cmd/slackdump/internal/ui/bubbles/pager/pager_test.go:38
↓ 4 callersFunctionsleepCtx
(ctx context.Context, d time.Duration)
internal/network/network.go:190
↓ 4 callersFunctiontestDir
(t *testing.T)
source/chunkdir_test.go:31
↓ 4 callersFunctiontestReplyFilePath
()
cmd/slackdump/internal/diag/merge_test.go:733
↓ 4 callersFunctiontestTopFilePath
()
cmd/slackdump/internal/diag/merge_test.go:729
↓ 4 callersMethodthread
thread fetches the whole thread identified by SlackLink, calling callback function fn for each slice received. the callback function will be called if
stream/conversation.go:234
↓ 4 callersFunctiontracelogf
(ctx context.Context, category string, format string, a ...any)
internal/network/network.go:226
↓ 4 callersFunctiontryClose
(errC chan<- error, a any)
internal/chunk/control/runner.go:192
↓ 4 callersFunctionusersTeamID
usersTeamID returns the team ID that the majority of users in src belong to.
cmd/slackdump/internal/diag/merge.go:233
↓ 4 callersFunctionvalidate
validate ensures that the directory is a Slackdump Archive directory. It sets the exit status according to the error type.
internal/redownload/redownload.go:95
↓ 4 callersFunctionverifyFileCountForTest
(t *testing.T, db *sqlx.DB, expected int)
internal/chunk/backend/dbase/repository/dedupe_test.go:582
↓ 4 callersFunctionverifyWorkspaces
verifyWorkspaces opens target and all sources to verify they belong to the same Slack workspace. All handles are closed before returning.
cmd/slackdump/internal/diag/merge.go:144
↓ 4 callersFunctionwithRetry
(label, fn)
contrib/replit_drive_backup/drive-upload-folder.mjs:122
↓ 3 callersMethodAdd
(n int)
internal/primitive/counter.go:26
↓ 3 callersMethodAddTool
AddTool adds an additional tool to the MCP server. This can be called after New but before serving starts. It is intended for CLI-layer tools that h
internal/mcp/server.go:254
↓ 3 callersMethodAll
(ctx context.Context, conn sqlx.QueryerContext)
internal/chunk/backend/dbase/repository/alias.go:35
↓ 3 callersMethodApply
Apply applies differing values from other Options. It only affects API-limits related values.
internal/network/limits.go:131
↓ 3 callersMethodAsThreadID
asThreadID returns the channelID and threadTS from the GroupID. If the GroupID is not a thread ID, it returns false.
internal/chunk/chunk.go:222
↓ 3 callersMethodAvatar
(userID, filename string)
internal/viewer/renderer/routes.go:129
↓ 3 callersFunctionAvatars
()
cmd/slackdump/internal/ui/cfgui/common_params.go:65
↓ 3 callersFunctionBrowserWithTimeout
(d time.Duration)
auth/option.go:54
↓ 3 callersFunctionBrowserWithWorkspace
(name string)
auth/option.go:42
↓ 3 callersMethodCacheUsers
(teamID string, users []slack.User)
cmd/slackdump/internal/list/users.go:111
↓ 3 callersMethodCanvasThreadRoots
CanvasThreadRoots returns the root messages for all comment threads on a canvas file. fileID is the Slack file ID, for example F06R4HA3ZS8.
internal/edge/canvas.go:103
↓ 3 callersMethodChannelID
(c string)
internal/chunk/obfuscate/ids.go:46
↓ 3 callersFunctionChannelIDs
Common reusable parameters
cmd/slackdump/internal/ui/cfgui/common_params.go:29
↓ 3 callersMethodChannelInfo
ChannelInfo is called for each channel that is retrieved. ChannelInfo will be called for each direct thread link, and in this case, threadID will be
processor/processor.go:41
↓ 3 callersFunctionChannelTypes
()
cmd/slackdump/internal/ui/cfgui/common_params.go:83
↓ 3 callersMethodChannelUsers
(channelID string)
internal/chunk/file.go:317
↓ 3 callersFunctionCheckFile
(filename string)
cmd/slackdump/internal/apiconfig/check.go:66
↓ 3 callersFunctionChunkFileJSONL
ChunkFileJSONL returns a reader for the chunks.jsonl.gz file.
internal/fixtures/chunk.go:53
↓ 3 callersMethodClientUserBoot
ClientUserBoot calls the client.userBoot API.
internal/edge/client_boot.go:40
↓ 3 callersMethodClose
()
slackdump_test.go:44
↓ 3 callersMethodClose
()
source/chunkdir_test.go:46
↓ 3 callersMethodClose
Close invokes the transformer's StartWithUsers method if it collected any users.
internal/chunk/control/processors.go:53
↓ 3 callersFunctionConfirm
(msg string, _ bool, opt ...Option)
cmd/slackdump/internal/ui/confirm.go:22
↓ 3 callersMethodConversation
Conversation writes the conversation to the writer.
internal/format/format.go:73
↓ 3 callersMethodConversationsGenericInfo
(ctx context.Context, channelID ...string)
internal/edge/conversations.go:42
↓ 3 callersFunctionCurrent
Current returns the current workspace in the directory dir, based on the configuration values. If cfg.Workspace is set, it checks if the workspace cf
cmd/slackdump/internal/workspace/workspace.go:124
↓ 3 callersMethodDownload
Download requires a started downloader, otherwise it will return ErrNotStarted. Will place the file to the download queue.
downloader/downloader.go:340
↓ 3 callersMethodDownload
Download should download the file at the given URL and save it to the given path.
internal/convert/transform/fileproc/fileproc.go:40
↓ 3 callersFunctionDumpFilepath
DumpFilepath returns the path to the file within the channel directory.
source/filestorage.go:101
↓ 3 callersFunctionDumpWithLogger
(log *slog.Logger)
internal/convert/transform/dump.go:57
↓ 3 callersFunctionDumpWithPipeline
DumpWithPipeline adds a pipeline function to the transformer, that will be called for each message slice, before it is written to the filesystem.
internal/convert/transform/dump.go:51
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mocks/mock_processor/mock_processor.go:606
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/mock_cache/mock_cache.go:99
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/convert/mock_convert/mock_copier.go:39
↓ 3 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/control/mock_control/mock_interfaces.go:246
↓ 3 callersMethodErr
()
cmd/slackdump/internal/workspace/list_format.go:51
↓ 3 callersFunctionExpWithMsgUpdateFunc
(fn ...func(*slack.Channel, *slack.Message) error)
internal/convert/transform/export.go:40
↓ 3 callersFunctionExportChanName
ExportChanName returns the channel name, or the channel ID if it is a DM.
source/export.go:390
↓ 3 callersMethodFileInfo
(name string)
cmd/slackdump/internal/workspace/workspace.go:83
↓ 3 callersFunctionG
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 3 callersMethodGet
(ctx context.Context, conn sqlx.ExtContext, id int64)
internal/chunk/backend/dbase/repository/session.go:123
↓ 3 callersMethodGetOrLoad
(ctx context.Context, k K, loader func(ctx context.Context, k K) (V, error))
source/export_cache.go:28
↓ 3 callersMethodGetUsersPaginated
(options ...slack.GetUsersOption)
internal/client/client.go:47
↓ 3 callersFunctionGn
(e)
internal/viewer/static/htmx.min.js:1
↓ 3 callersMethodHTTPClient
Client returns an authenticated HTTP client
auth/auth.go:54
↓ 3 callersFunctionHasExcludePrefix
(s string)
internal/structures/entity_list.go:106
↓ 3 callersMethodHasIncludes
HasIncludes returns true if there's any included entities.
internal/structures/entity_list.go:324
↓ 3 callersFunctionIncludeCustomLabels
()
cmd/slackdump/internal/ui/cfgui/common_params.go:117
↓ 3 callersMethodInit
()
cmd/slackdump/internal/ui/bubbles/filemgr/filemgr.go:102
↓ 3 callersFunctionIsDocker
IsDocker returns true if the process is running in a docker container.
internal/osext/osext.go:55
↓ 3 callersFunctionIsMember
IsMember returns true if the user is a member of a given Slack Channel.
internal/structures/conversation.go:78
↓ 3 callersFunctionIsSlackResponseError
IsSlackResponseError returns true if the following conditions are met: - error is of [slack.SlackErrorResponse] type; AND - e.Err field equal to the s
internal/structures/errors.go:29
↓ 3 callersFunctionIsValidSlackURL
IsValidSlackURL returns true if the value looks like valid Slack URL, false if not.
internal/structures/url_parse.go:149
↓ 3 callersFunctionIsValidWithReason
(f *slack.File)
internal/convert/transform/fileproc/fileproc.go:142
↓ 3 callersFunctionJe
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 3 callersFunctionJn
(e,n,r)
internal/viewer/static/htmx.min.js:1
↓ 3 callersFunctionJoinUsers
JoinUsers joins multiple Users processors into one.
processor/processor.go:133
↓ 3 callersFunctionKeyDownBinding
()
cmd/slackdump/internal/ui/keymap.go:63
↓ 3 callersFunctionKeyQuitBinding
()
cmd/slackdump/internal/ui/keymap.go:83
↓ 3 callersFunctionKeyUpBinding
()
cmd/slackdump/internal/ui/keymap.go:59
↓ 3 callersFunctionL
(e)
internal/viewer/static/htmx.min.js:1
← previousnext →601–700 of 4,254, ranked by callers