MCPcopy Index your code

hub / github.com/rusq/slackdump / functions

Functions4,254 in github.com/rusq/slackdump

↓ 727 callersMethodRun
Run should run the main controller loop.
cmd/slackdump/internal/archive/archive.go:275
↓ 248 callersMethodEqual
Equal returns true if the two releases have the same version and publish date. Version comparison is case-insensitive.
cmd/slackdump/internal/diag/updater/updater.go:50
↓ 192 callersFunctionSetExitStatus
(n StatusCode)
cmd/slackdump/internal/golang/base/base.go:97
↓ 165 callersMethodClose
()
cmd/slackdump/internal/diag/hydrate_test.go:161
↓ 149 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/control/mock_control/mock_interfaces.go:43
↓ 94 callersFunctiontestDB
testDB returns a test database with the schema applied.
internal/chunk/backend/dbase/dbase_test.go:37
↓ 92 callersMethodIs
(target error)
internal/network/network.go:91
↓ 84 callersFunctioninsertChunkForTest
(t *testing.T, db *sqlx.DB, chunkID, sessionID int64, typeID chunk.ChunkType)
internal/chunk/backend/dbase/repository/cleanup_test.go:128
↓ 82 callersMethodError
()
cmd/slackdump/internal/diag/obfuscate.go:133
↓ 81 callersMethodStat
(id FileID)
internal/chunk/directory.go:307
↓ 75 callersMethodIs
(target error)
auth/auth_error.go:44
↓ 74 callersFunctiontestConn
testConn returns a new in-memory database connection for testing.
internal/chunk/backend/dbase/repository/repository_test.go:47
↓ 72 callersMethodString
()
internal/chunk/chunk.go:241
↓ 65 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
source/mock_source/mock_source.go:45
↓ 63 callersMethodFiles
Files should return file [Storage].
source/source.go:76
↓ 63 callersMethodOpen
(filename string)
internal/cache/auth.go:284
↓ 62 callersMethodEncode
(ctx context.Context, chunk *Chunk)
internal/chunk/recorder.go:38
↓ 62 callersMethodName
Name should return the name of the retriever underlying media, i.e. directory or archive.
source/source.go:49
↓ 60 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/client/mock_client/mock_client.go:41
↓ 59 callersMethodError
()
internal/viewer/renderer/slack.go:202
↓ 57 callersMethodCreate
(filename string)
internal/cache/auth.go:283
↓ 56 callersFunctionNewDBMessage
(dbchunkID int64, idx int, channelID string, msg *slack.Message)
internal/chunk/backend/dbase/repository/dbmessage.go:48
↓ 55 callersFunctionNewEntityListFromItems
(items ...EntityItem)
internal/structures/entity_list.go:171
↓ 54 callersFunctionfn
(t,n,r,e,o)
internal/viewer/static/htmx.min.js:1
↓ 51 callersFunctionmust
(t T, err error)
internal/chunk/backend/dbase/repository/generic_test.go:33
↓ 50 callersFunctionae
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 49 callersMethodInfo
Info returns a workspace information. Slackdump retrieves workspace information during the initialisation when performing authentication test, so no
slackdump.go:234
↓ 49 callersFunctionte
()
internal/viewer/static/htmx.min.js:1
↓ 48 callersMethodRender
(ctx context.Context, m *slack.Message)
internal/viewer/renderer/renderer.go:28
↓ 47 callersMethodClose
Close closes the controller and all its file processors, aborting the underlying encoder if it supports explicit finalisation semantics.
internal/chunk/control/control.go:188
↓ 47 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/mock_os/mock_os.go:40
↓ 43 callersMethodValue
()
cmd/slackdump/internal/ui/bubbles/btime/btime.go:214
↓ 42 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/backend/directory/dirproc_mock_test.go:41
↓ 42 callersFunctionie
(t,n)
internal/viewer/static/htmx.min.js:1
↓ 40 callersMethodAdd
(int)
internal/chunk/backend/directory/conversations.go:73
↓ 40 callersMethodLen
Len should return the data length.
cmd/slackdump/internal/list/common.go:81
↓ 40 callersMethodName
Name should return the name of the file. *os.File implements this interface.
internal/osext/osext.go:43
↓ 39 callersFunctionNewMessageRepository
()
internal/chunk/backend/dbase/repository/dbmessage.go:166
↓ 36 callersMethodChannels
Channels should converts and write channels.
internal/convert/convert.go:43
↓ 36 callersMethodString
()
cmd/slackdump/internal/ui/bubbles/datepicker/focus_string.go:21
↓ 36 callersMethodUpdate
Update should update a session in the database. It should return the number of rows affected.
internal/chunk/backend/dbase/repository/session.go:56
↓ 36 callersFunctionce
(e)
internal/viewer/static/htmx.min.js:1
↓ 36 callersFunctioninsertSessionForTest
(t *testing.T, db *sqlx.DB, id int64, finished bool, parentID *int64)
internal/chunk/backend/dbase/repository/cleanup_test.go:119
↓ 34 callersMethodRecorder
(id chunk.FileID)
internal/chunk/backend/directory/conversations.go:55
↓ 34 callersFunctionToFileID
ToFileID returns the file ID for the given channel and thread timestamp. If includeThread is true and threadTS is not empty, the thread timestamp will
internal/chunk/file_id.go:36
↓ 33 callersMethodInsert
Insert should insert the entity into the database.
internal/chunk/backend/dbase/repository/generic.go:33
↓ 32 callersMethodClose
Close closes the underlying reader if it implements io.Closer.
internal/chunk/file.go:111
↓ 32 callersFunctionDefaultTheme
()
cmd/slackdump/internal/ui/theme.go:81
↓ 32 callersMethodTime
()
export/message.go:55
↓ 30 callersMethodClose
Close aborts the writer without finalising the session.
internal/chunk/backend/dbase/dbase.go:167
↓ 29 callersMethodChannelInfo
ChannelInfo should return the channel information for the given channel id.
source/source.go:74
↓ 29 callersFunctionCheckbox
(b bool)
cmd/slackdump/internal/ui/cfgui/model.go:282
↓ 29 callersMethodCopy
(*slack.Channel, *slack.Message)
internal/convert/dump.go:90
↓ 29 callersFunctionNewBool
(ptrBool *bool)
cmd/slackdump/internal/ui/updaters/bool.go:27
↓ 29 callersMethodQueryRowxContext
(ctx context.Context, query string, args ...any)
internal/chunk/backend/dbase/repository/repository_test.go:261
↓ 28 callersFunctionNewMockSourcer
NewMockSourcer creates a new mock instance.
source/mock_source/mock_source.go:38
↓ 28 callersMethodValidate
Validate should return error, in case the token or cookies cannot be retrieved.
auth/auth.go:50
↓ 28 callersMethodWait
()
internal/chunk/control/noop.go:38
↓ 28 callersFunctionnewArchiveDir
(t *testing.T)
cmd/slackdump/internal/diag/dbopen_test.go:39
↓ 28 callersFunctionoe
(e)
internal/viewer/static/htmx.min.js:1
↓ 28 callersFunctionresultErr
resultErr is a helper that wraps an error in a CallToolResult with IsError=true.
internal/mcp/server.go:264
↓ 27 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/backend/directory/dirproc_mock_test.go:122
↓ 27 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
cmd/slackdump/internal/workspace/mocks_test.go:42
↓ 27 callersMethodError
()
internal/chunk/control/runner.go:78
↓ 27 callersMethodMessages
Messages method is called for each message that is retrieved.
processor/processor.go:48
↓ 27 callersMethodSet
(ctx context.Context, conn sqlx.ExtContext, channelID, alias string)
internal/chunk/backend/dbase/repository/alias.go:36
↓ 27 callersMethodWorkspaceInfo
(ctx context.Context, proc processor.WorkspaceInfo)
internal/chunk/control/interfaces.go:38
↓ 26 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mocks/mock_processor/mock_processor.go:40
↓ 26 callersMethodString
()
cmd/slackdump/internal/cfg/cfg.go:166
↓ 26 callersMethodUsers
Users should return the users for the data, or nil, which indicates that there are no associated users or that the users are not resolved.
cmd/slackdump/internal/list/common.go:79
↓ 26 callersFunctionWithRetry
WithRetry will run the callback function fn. If the function returns slack.RateLimitedError, it will delay, and then call it again up to maxAttempts t
internal/network/network.go:99
↓ 25 callersMethodIsDir
IsDir mocks base method.
internal/mocks/mock_os/mock_os.go:45
↓ 25 callersMethodWorkspaceInfo
WorkspaceInfo should return the workspace information, if it is available.
source/source.go:80
↓ 25 callersMethodrandomStringExact
randomStringExact returns a random string of length n.
internal/chunk/obfuscate/obfuscate.go:259
↓ 24 callersMethodChannels
(ctx context.Context)
cmd/slackdump/internal/diag/hydrate.go:198
↓ 24 callersMethodDecode
(any)
internal/chunk/file.go:119
↓ 24 callersFunctionNewLimiter
NewLimiter returns throttler with rateLimit requests per minute. optionally caller may specify the boost
internal/network/limiter.go:40
↓ 24 callersMethodUsers
(ctx context.Context, proc processor.Users, opt ...slack.GetUsersOption)
internal/chunk/control/interfaces.go:37
↓ 24 callersFunctionee
(e,t)
internal/viewer/static/htmx.min.js:1
↓ 23 callersMethodGet
Get should return the entity with the given id.
internal/chunk/backend/dbase/repository/generic.go:56
↓ 23 callersFunctionNewRoutes
(mode Mode, opts ...RouteOption)
internal/viewer/renderer/routes.go:63
↓ 23 callersMethodWrite
(p []byte)
internal/edge/edge.go:112
↓ 23 callersFunctioninsertMessageWithChunkForTest
(t *testing.T, db *sqlx.DB, msgID, chunkID int64, data []byte)
internal/chunk/backend/dbase/repository/cleanup_test.go:137
↓ 22 callersFunctionprepChunk
prepChunk prepares number of chunks in the database. these are duplicated from repository tests.
internal/chunk/backend/dbase/split_test.go:61
↓ 22 callersFunctionre
(e)
internal/viewer/static/htmx.min.js:1
↓ 21 callersMethodClose
()
source/dump.go:256
↓ 21 callersMethodError
()
internal/chunk/backend/dbase/split.go:98
↓ 21 callersMethodListChannels
(ctx context.Context, proc processor.Channels, p *slack.GetConversationsParameters)
internal/chunk/control/interfaces.go:35
↓ 21 callersFunctionLoad
Load loads the source from file src. It will automatically detect the format and return the appropriate reader. It will detect any attachments and a
source/source.go:163
↓ 21 callersFunctionMarshalJSON
MarshalJSON marshals data to JSON and returns the byte slice.
internal/testutil/json.go:24
↓ 21 callersFunctionNewErrIncorrectType
(want, got any)
internal/viewer/renderer/slack.go:189
↓ 21 callersFunctionNewMockSlack
NewMockSlack creates a new mock instance.
internal/client/mock_client/mock_client.go:34
↓ 21 callersMethodSplit
Split splits the file ID into channel ID and thread timestamp. If the file ID doesn't contain the thread timestamp, the thread timestamp will be empt
internal/chunk/file_id.go:54
↓ 21 callersMethodType
Type should return the flag that describes the type of the source. It may not have all the flags set, but it should have at least one identifying the
source/source.go:53
↓ 21 callersFunctionfe
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 20 callersMethodAllForChunk
(ctx context.Context, conn sqlx.QueryerContext, chunkID int64)
internal/chunk/backend/dbase/repository/generic.go:63
↓ 20 callersMethodAllMessages
AllMessages should return all messages for the given channel id. If there's no messages for the channel, it should return ErrNotFound.
source/source.go:60
↓ 20 callersMethodFS
FS should return the filesystem with file attachments.
source/filestorage.go:39
↓ 20 callersMethodThreadMessages
ThreadMessages method is called for each of the thread messages that are retrieved. The parent message is passed in as well.
processor/processor.go:51
↓ 19 callersFunctionDummyChannel
DummyChannel is the helper function that returns a pointer to a slack.Channel with the given ID, that could be used in tests.
internal/fixtures/fixtures.go:81
next →1–100 of 4,254, ranked by callers