MCPcopy Create free account

hub / github.com/rusq/slackdump / functions

Functions4,254 in github.com/rusq/slackdump

↓ 2 callersMethodWrite
(p []byte)
internal/client/client_test.go:31
↓ 2 callersMethodWrite
(b []byte)
cmd/slackdump/internal/golang/help/help.go:65
↓ 2 callersFunctionYesNoWR
(w io.Writer, r io.Reader, message string)
cmd/slackdump/internal/golang/base/ui.go:17
↓ 2 callersFunction_e
(e,n,r)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctionaddToken
addToken updates the uri, adding the t= query parameter with token value. if token or url is empty, it does nothing.
internal/structures/files/files.go:92
↓ 2 callersMethodallMessagesForID
allMessagesForID returns all the messages for the given id.
internal/chunk/file.go:344
↓ 2 callersMethodallMessagesOrEmpty
(ctx context.Context, channelID string)
internal/viewer/handlers.go:653
↓ 2 callersFunctionan
(e,t)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctionapplyLimits
applyLimits reads the limits from the reader, validates them and applies to the global config.
cmd/slackdump/internal/apiconfig/apiconfig.go:75
↓ 2 callersFunctionbe
(t,n,r)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctionboundary
boundary extracts boundary from the request.
auth/browser/extractors.go:106
↓ 2 callersFunctionbt
(e)
internal/viewer/static/htmx.min.js:1
↓ 2 callersMethodbuildPipeline
(resultC chan<- searchResult, chanTypes []string, onlyMy bool)
internal/edge/slacker.go:57
↓ 2 callersFunctionbuildStdFileIdx
buildStdFileIdx walks the fsys, finding all "attachments" subdirectories, and indexes files in them.
source/filestorage.go:212
↓ 2 callersFunctioncacheDirectoryParam
(t *testing.T)
cmd/slackdump/internal/workspace/workspaceui/workspaceui_test.go:74
↓ 2 callersFunctioncachedFromReader
(wf osext.ReadSeekCloseNamer, wantCache bool)
internal/chunk/directory.go:441
↓ 2 callersMethodcanvas
(ctx context.Context, proc processor.Conversations, channel *slack.Channel, fileId string)
stream/stream_workers.go:157
↓ 2 callersMethodcanvasContentHandler
canvasContentHandler streams the raw canvas HTML content for the given channel directly, without requiring the caller to know the filename.
internal/viewer/handlers.go:269
↓ 2 callersMethodcanvasHandler
(w http.ResponseWriter, r *http.Request, id string)
internal/viewer/handlers.go:255
↓ 2 callersMethodchannelHandler
(w http.ResponseWriter, r *http.Request, id string)
internal/viewer/handlers.go:162
↓ 2 callersMethodchannelInfo
(id string)
internal/chunk/player.go:205
↓ 2 callersFunctionchannelsTeam
channelsTeam returns the team ID of the first public channel with a shared team ID.
cmd/slackdump/internal/resume/resume.go:439
↓ 2 callersFunctioncheckCacheFile
checkCacheFile checks the cache file to see if it is valid. The file is considered valid if it exists and is not older than maxAge. If the file does n
internal/cache/cache.go:54
↓ 2 callersFunctioncheckExists
(filename string)
cmd/slackdump/internal/ui/filesystem.go:75
↓ 2 callersMethodchunkQuery
(chunkID int64)
internal/chunk/backend/dbase/repository/generic.go:326
↓ 2 callersFunctionclampWidth
(w int)
cmd/slackdump/internal/ui/bubbles/filemgr/filemgr.go:316
↓ 2 callersMethodcloseResources
()
internal/chunk/control/control.go:169
↓ 2 callersFunctioncollect
(fn func(string) string)
cmd/slackdump/internal/diag/info/info.go:82
↓ 2 callersFunctioncollectDirs
(fsys fs.FS)
cmd/slackdump/internal/ui/bubbles/filemgr/filemgr.go:162
↓ 2 callersFunctioncollectFiles
(fsys fs.FS, globs ...string)
cmd/slackdump/internal/ui/bubbles/filemgr/filemgr.go:134
↓ 2 callersFunctioncompile
Compile checks the template for validness and compiles it returning the template and an error if any.
internal/nametmpl/template.go:74
↓ 2 callersFunctioncomputeCutoff
computeCutoff returns the absolute time before which entities are considered stale. Returns nil when d is nil or represents a zero/ negative duration
cmd/slackdump/internal/resume/resume.go:459
↓ 2 callersMethodconfiguration
()
cmd/slackdump/internal/list/wizard.go:146
↓ 2 callersFunctioncontainer
()
internal/viewer/static/viewer.js:14
↓ 2 callersFunctionconversationWorker
(ctx context.Context, s Streamer, proc processor.Conversations, links <-chan structures.EntityItem)
internal/chunk/control/workers.go:36
↓ 2 callersMethodconversationsHistoryForCanvas
(ctx context.Context, channelID string)
internal/edge/canvas.go:62
↓ 2 callersFunctionconvertToDM
(me string, ch slack.Channel, mode DMMode)
internal/structures/index.go:305
↓ 2 callersMethodcopyAvatar
copyAvatar copies the avatar for the user to the target directory. TODO: test on windows with the directory fsa
internal/convert/filecopy.go:148
↓ 2 callersFunctioncopyFSFile
copyFSFile copies the file at srcPath in srcFS to dstPath (relative to dstDir), creating parent directories as needed.
cmd/slackdump/internal/mcp/mcp.go:237
↓ 2 callersMethodcopyFileSeq
(ctx context.Context, fc *FileCopier, ch *slack.Channel, channelID string, it iter.Seq2[slack.Message, error])
internal/convert/html.go:180
↓ 2 callersFunctioncreateWsp
createWsp creates a new workspace interactively.
cmd/slackdump/internal/workspace/new.go:80
↓ 2 callersFunctiondbControllerFiler
(dl fileproc.Downloader, conn *sqlx.DB, lg *slog.Logger, options dbControllerOptions)
cmd/slackdump/internal/archive/archive.go:265
↓ 2 callersFunctiondecideResume
(r latestResult)
cmd/slackdump/internal/resume/resume.go:251
↓ 2 callersFunctiondefaultDateKeymap
()
cmd/slackdump/internal/ui/updaters/date.go:88
↓ 2 callersFunctiondeleteUnfinishedSession
(ctx context.Context, tx *sqlx.Tx, sessionID int64)
internal/chunk/backend/dbase/repository/cleanup.go:113
↓ 2 callersFunctiondmsToChannels
(DMs []DM)
internal/structures/index.go:202
↓ 2 callersFunctiondn
(e,t)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctiondo
do is a helper function to do the request and handle rate limiting. it tries to handle the rate limiting by waiting for the Retry-After only once, if
internal/edge/edge.go:284
↓ 2 callersFunctiondownloadAsset
downloadAsset downloads an asset from GitHub and verifies its SHA256 checksum.
cmd/slackdump/internal/diag/updater/autoupdate.go:241
↓ 2 callersFunctiondownloadFiles
(ctx context.Context, d downloader.GetFiler, trg fsadapter.FS, src sourcer)
cmd/slackdump/internal/diag/hydrate.go:203
↓ 2 callersFunctiondrawCursor
numTuples is the size of the field in tuples.
cmd/slackdump/internal/ui/bubbles/btime/btime.go:271
↓ 2 callersMethoddumpThread
dumpThread retrieves all messages in the thread and returns them as a slice of messages.
thread.go:108
↓ 2 callersMethoddumpThreadAsConversation
dumpThreadAsConversation dumps a single thread identified by (channelID, threadTS). Optionally one can provide a number of processFn that will be appl
thread.go:38
↓ 2 callersFunctionencodeThreadMessages
(ctx context.Context, rec processor.Conversations, src source.Sourcer, ch *slack.Channel, par *slack.Message,
internal/convert/src2enc.go:206
↓ 2 callersFunctionensureFolder
(name, parentId)
contrib/replit_drive_backup/drive-upload-folder.mjs:144
↓ 2 callersFunctionensureSameWorkspace
(ctx context.Context, src source.Sourcer, info *slackdump.WorkspaceInfo)
cmd/slackdump/internal/resume/resume.go:362
↓ 2 callersMethodentities
()
internal/chunk/backend/dbase/repository/dedupe.go:134
↓ 2 callersFunctionerrSeqFn
errSeqFn will return err for forTimes time and thenErr after.
internal/network/network_test.go:69
↓ 2 callersFunctionevery
(t Tier, boost int)
internal/network/limiter.go:45
↓ 2 callersFunctionexcept
except returns the first element of ss that is not equal to s. If no such element is found before index stopAfterIdx (0-based), it instead returns the
internal/structures/index.go:248
↓ 2 callersFunctionexists
(name string)
internal/cache/auth.go:120
↓ 2 callersFunctionexportWithDir
exportWithDir runs the export with the chunk file directory backend. It exists as a fallback in case database backend has issues. Deprecated: use ex
cmd/slackdump/internal/export/v3.go:145
↓ 2 callersFunctionextractToken
extractToken extracts the API token from the provided reader. It expects that reader points to an HTML page retrieved from ssb/redirect
auth/token.go:68
↓ 2 callersFunctionextractTokenGet
extractTokenGet extracts token from the query string.
auth/browser/extractors.go:56
↓ 2 callersFunctionezLoginSupported
()
internal/cache/auth.go:125
↓ 2 callersFunctionezLoginTested
()
internal/cache/auth.go:129
↓ 2 callersFunctionfakeAuthTester
(err error)
internal/cache/auth_test.go:261
↓ 2 callersFunctionfatalTree
(t *testing.T, root string)
internal/convert/html_test.go:363
↓ 2 callersMethodfetchUsers
fetchUsers fetches users from the API.
users.go:59
↓ 2 callersFunctionfieldFileInput
(filename *string, msg, descr string, opts inputOptions)
cmd/slackdump/internal/ui/filesystem.go:91
↓ 2 callersFunctionfileByID
fileByID looks up a file by ID alone via the optional [fileByIDStorage] extension interface. If the concrete storage type does not implement it, the
internal/viewer/filestorage.go:38
↓ 2 callersFunctionfilePrivateLinks
fileThumbLinks returns slice of pointers to all private URL links of the file.
internal/structures/files/files.go:47
↓ 2 callersMethodfileProc
fileProcessorForSource returns the appropriate file processor.
internal/redownload/redownload.go:122
↓ 2 callersMethodfilename
filename returns the filename for the workspace name.
internal/cache/manager.go:366
↓ 2 callersFunctionfilenameJoin
filenameJoin combines nameExt{"path/to/filename", ".ext"} to "path/to/filename.ext".
internal/cache/cache.go:46
↓ 2 callersFunctionfilenameParam
(placeholder string)
cmd/slackdump/internal/list/wizard.go:92
↓ 2 callersFunctionfilenameSplit
filenameSplit splits the "path/to/filename.ext" into nameExt{"path/to/filename", ".ext"}.
internal/cache/cache.go:39
↓ 2 callersFunctionfindAsset
findAsset finds the correct asset for the given platform.
cmd/slackdump/internal/diag/updater/autoupdate.go:203
↓ 2 callersFunctionfindInteractiveBrowser
findInteractiveBrowser returns the path to a locally installed system browser (Chrome/Edge/Brave/Chromium) suitable for use in place of the launcher-m
auth/rod.go:221
↓ 2 callersFunctionfloat2time
float2time converts a float value of Unix time to time, nanoseconds value is discarded. If v == -1, it returns the date approximately 5 years from No
auth/browser/client.go:234
↓ 2 callersFunctionfmtPrint
fmtPrint prints the given data to the given writer, using the given format. It should be supplied with prepopulated users, as it may need to look up u
cmd/slackdump/internal/list/common.go:178
↓ 2 callersMethodget
get returns the channel info from the cache. If it fails to find it, it returns nil.
stream/cache.go:16
↓ 2 callersFunctiongetExpectedChecksum
getExpectedChecksum downloads and parses the checksums.txt file to find the expected hash for the given asset.
cmd/slackdump/internal/diag/updater/autoupdate.go:306
↓ 2 callersFunctiongetTimeTuple
(item string)
internal/structures/entity_list.go:244
↓ 2 callersFunctiongetTokenByCookie
(ctx context.Context, workspaceName string, dCookie string)
auth/token.go:35
↓ 2 callersFunctiongimmeTempFile
(t *testing.T, dir string)
internal/cache/usercache_test.go:193
↓ 2 callersFunctionglobalConfig
()
cmd/slackdump/internal/ui/cfgui/configuration.go:48
↓ 2 callersFunctiongn
(e)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctionhumanizeSize
humanizeSize returns a human-readable string representing a file size. for example 240.4M or 2.3G
cmd/slackdump/internal/ui/bubbles/filemgr/filemgr.go:288
↓ 2 callersFunctioni
(e)
internal/viewer/static/htmx.min.js:1
↓ 2 callersFunctionift
(cond bool, t, f T)
cmd/slackdump/internal/emoji/emojidl/emoji.go:95
↓ 2 callersMethodinit
()
internal/chunk/chunktest/dirserver.go:45
↓ 2 callersMethodinitProvider
initProvider initialises the auth.Provider depending on provided slack credentials. It returns auth.Provider or an error. The logic diagram is avail
internal/cache/auth.go:189
↓ 2 callersFunctioninitTrace
initTrace initialises the tracing. If the filename is not empty, the file will be opened, trace will write to that file. Returns the stop function t
cmd/slackdump/instruments.go:76
↓ 2 callersFunctioninitiateResumable
(filename, fileSize, mimeType, parentFolderId)
contrib/replit_drive_backup/drive-upload-folder.mjs:180
↓ 2 callersMethodinsertChannelUsers
(ctx context.Context, tx repository.PrepareExtContext, dbchunkID int64, channelID string, users []string)
internal/chunk/backend/dbase/split.go:248
↓ 2 callersMethodinsertFiles
(ctx context.Context, tx repository.PrepareExtContext, dbchunkID int64, channelID, threadTS, parMsgTS string,
internal/chunk/backend/dbase/split.go:146
↓ 2 callersMethodinsertMessages
(ctx context.Context, tx repository.PrepareExtContext, dbchunkID int64, channelID string, mm []slack.Message)
internal/chunk/backend/dbase/split.go:131
↓ 2 callersMethodinsertPayload
insertPayload calls relevant function to insert the chunk payload.
internal/chunk/backend/dbase/split.go:103
↓ 2 callersMethodinsertSearchFiles
(ctx context.Context, tx repository.PrepareExtContext, dbchunkID int64, _ string, ff []slack.File)
internal/chunk/backend/dbase/split.go:281
← previousnext →1,101–1,200 of 4,254, ranked by callers