Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/rusq/slackdump
/ functions
Functions
4,254 in github.com/rusq/slackdump
⨍
Functions
4,254
◇
Types & classes
939
↓ 727 callers
Method
Run
Run should run the main controller loop.
cmd/slackdump/internal/archive/archive.go:275
↓ 248 callers
Method
Equal
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 callers
Function
SetExitStatus
(n StatusCode)
cmd/slackdump/internal/golang/base/base.go:97
↓ 165 callers
Method
Close
()
cmd/slackdump/internal/diag/hydrate_test.go:161
↓ 149 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/control/mock_control/mock_interfaces.go:43
↓ 94 callers
Function
testDB
testDB returns a test database with the schema applied.
internal/chunk/backend/dbase/dbase_test.go:37
↓ 92 callers
Method
Is
(target error)
internal/network/network.go:91
↓ 84 callers
Function
insertChunkForTest
(t *testing.T, db *sqlx.DB, chunkID, sessionID int64, typeID chunk.ChunkType)
internal/chunk/backend/dbase/repository/cleanup_test.go:128
↓ 82 callers
Method
Error
()
cmd/slackdump/internal/diag/obfuscate.go:133
↓ 81 callers
Method
Stat
(id FileID)
internal/chunk/directory.go:307
↓ 75 callers
Method
Is
(target error)
auth/auth_error.go:44
↓ 74 callers
Function
testConn
testConn returns a new in-memory database connection for testing.
internal/chunk/backend/dbase/repository/repository_test.go:47
↓ 72 callers
Method
String
()
internal/chunk/chunk.go:241
↓ 65 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
source/mock_source/mock_source.go:45
↓ 63 callers
Method
Files
Files should return file [Storage].
source/source.go:76
↓ 63 callers
Method
Open
(filename string)
internal/cache/auth.go:284
↓ 62 callers
Method
Encode
(ctx context.Context, chunk *Chunk)
internal/chunk/recorder.go:38
↓ 62 callers
Method
Name
Name should return the name of the retriever underlying media, i.e. directory or archive.
source/source.go:49
↓ 60 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/client/mock_client/mock_client.go:41
↓ 59 callers
Method
Error
()
internal/viewer/renderer/slack.go:202
↓ 57 callers
Method
Create
(filename string)
internal/cache/auth.go:283
↓ 56 callers
Function
NewDBMessage
(dbchunkID int64, idx int, channelID string, msg *slack.Message)
internal/chunk/backend/dbase/repository/dbmessage.go:48
↓ 55 callers
Function
NewEntityListFromItems
(items ...EntityItem)
internal/structures/entity_list.go:171
↓ 54 callers
Function
fn
(t,n,r,e,o)
internal/viewer/static/htmx.min.js:1
↓ 51 callers
Function
must
(t T, err error)
internal/chunk/backend/dbase/repository/generic_test.go:33
↓ 50 callers
Function
ae
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 49 callers
Method
Info
Info returns a workspace information. Slackdump retrieves workspace information during the initialisation when performing authentication test, so no
slackdump.go:234
↓ 49 callers
Function
te
()
internal/viewer/static/htmx.min.js:1
↓ 48 callers
Method
Render
(ctx context.Context, m *slack.Message)
internal/viewer/renderer/renderer.go:28
↓ 47 callers
Method
Close
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 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/mocks/mock_os/mock_os.go:40
↓ 43 callers
Method
Value
()
cmd/slackdump/internal/ui/bubbles/btime/btime.go:214
↓ 42 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/backend/directory/dirproc_mock_test.go:41
↓ 42 callers
Function
ie
(t,n)
internal/viewer/static/htmx.min.js:1
↓ 40 callers
Method
Add
(int)
internal/chunk/backend/directory/conversations.go:73
↓ 40 callers
Method
Len
Len should return the data length.
cmd/slackdump/internal/list/common.go:81
↓ 40 callers
Method
Name
Name should return the name of the file. *os.File implements this interface.
internal/osext/osext.go:43
↓ 39 callers
Function
NewMessageRepository
()
internal/chunk/backend/dbase/repository/dbmessage.go:166
↓ 36 callers
Method
Channels
Channels should converts and write channels.
internal/convert/convert.go:43
↓ 36 callers
Method
String
()
cmd/slackdump/internal/ui/bubbles/datepicker/focus_string.go:21
↓ 36 callers
Method
Update
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 callers
Function
ce
(e)
internal/viewer/static/htmx.min.js:1
↓ 36 callers
Function
insertSessionForTest
(t *testing.T, db *sqlx.DB, id int64, finished bool, parentID *int64)
internal/chunk/backend/dbase/repository/cleanup_test.go:119
↓ 34 callers
Method
Recorder
(id chunk.FileID)
internal/chunk/backend/directory/conversations.go:55
↓ 34 callers
Function
ToFileID
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 callers
Method
Insert
Insert should insert the entity into the database.
internal/chunk/backend/dbase/repository/generic.go:33
↓ 32 callers
Method
Close
Close closes the underlying reader if it implements io.Closer.
internal/chunk/file.go:111
↓ 32 callers
Function
DefaultTheme
()
cmd/slackdump/internal/ui/theme.go:81
↓ 32 callers
Method
Time
()
export/message.go:55
↓ 30 callers
Method
Close
Close aborts the writer without finalising the session.
internal/chunk/backend/dbase/dbase.go:167
↓ 29 callers
Method
ChannelInfo
ChannelInfo should return the channel information for the given channel id.
source/source.go:74
↓ 29 callers
Function
Checkbox
(b bool)
cmd/slackdump/internal/ui/cfgui/model.go:282
↓ 29 callers
Method
Copy
(*slack.Channel, *slack.Message)
internal/convert/dump.go:90
↓ 29 callers
Function
NewBool
(ptrBool *bool)
cmd/slackdump/internal/ui/updaters/bool.go:27
↓ 29 callers
Method
QueryRowxContext
(ctx context.Context, query string, args ...any)
internal/chunk/backend/dbase/repository/repository_test.go:261
↓ 28 callers
Function
NewMockSourcer
NewMockSourcer creates a new mock instance.
source/mock_source/mock_source.go:38
↓ 28 callers
Method
Validate
Validate should return error, in case the token or cookies cannot be retrieved.
auth/auth.go:50
↓ 28 callers
Method
Wait
()
internal/chunk/control/noop.go:38
↓ 28 callers
Function
newArchiveDir
(t *testing.T)
cmd/slackdump/internal/diag/dbopen_test.go:39
↓ 28 callers
Function
oe
(e)
internal/viewer/static/htmx.min.js:1
↓ 28 callers
Function
resultErr
resultErr is a helper that wraps an error in a CallToolResult with IsError=true.
internal/mcp/server.go:264
↓ 27 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
internal/chunk/backend/directory/dirproc_mock_test.go:122
↓ 27 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
cmd/slackdump/internal/workspace/mocks_test.go:42
↓ 27 callers
Method
Error
()
internal/chunk/control/runner.go:78
↓ 27 callers
Method
Messages
Messages method is called for each message that is retrieved.
processor/processor.go:48
↓ 27 callers
Method
Set
(ctx context.Context, conn sqlx.ExtContext, channelID, alias string)
internal/chunk/backend/dbase/repository/alias.go:36
↓ 27 callers
Method
WorkspaceInfo
(ctx context.Context, proc processor.WorkspaceInfo)
internal/chunk/control/interfaces.go:38
↓ 26 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
mocks/mock_processor/mock_processor.go:40
↓ 26 callers
Method
String
()
cmd/slackdump/internal/cfg/cfg.go:166
↓ 26 callers
Method
Users
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 callers
Function
WithRetry
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 callers
Method
IsDir
IsDir mocks base method.
internal/mocks/mock_os/mock_os.go:45
↓ 25 callers
Method
WorkspaceInfo
WorkspaceInfo should return the workspace information, if it is available.
source/source.go:80
↓ 25 callers
Method
randomStringExact
randomStringExact returns a random string of length n.
internal/chunk/obfuscate/obfuscate.go:259
↓ 24 callers
Method
Channels
(ctx context.Context)
cmd/slackdump/internal/diag/hydrate.go:198
↓ 24 callers
Method
Decode
(any)
internal/chunk/file.go:119
↓ 24 callers
Function
NewLimiter
NewLimiter returns throttler with rateLimit requests per minute. optionally caller may specify the boost
internal/network/limiter.go:40
↓ 24 callers
Method
Users
(ctx context.Context, proc processor.Users, opt ...slack.GetUsersOption)
internal/chunk/control/interfaces.go:37
↓ 24 callers
Function
ee
(e,t)
internal/viewer/static/htmx.min.js:1
↓ 23 callers
Method
Get
Get should return the entity with the given id.
internal/chunk/backend/dbase/repository/generic.go:56
↓ 23 callers
Function
NewRoutes
(mode Mode, opts ...RouteOption)
internal/viewer/renderer/routes.go:63
↓ 23 callers
Method
Write
(p []byte)
internal/edge/edge.go:112
↓ 23 callers
Function
insertMessageWithChunkForTest
(t *testing.T, db *sqlx.DB, msgID, chunkID int64, data []byte)
internal/chunk/backend/dbase/repository/cleanup_test.go:137
↓ 22 callers
Function
prepChunk
prepChunk prepares number of chunks in the database. these are duplicated from repository tests.
internal/chunk/backend/dbase/split_test.go:61
↓ 22 callers
Function
re
(e)
internal/viewer/static/htmx.min.js:1
↓ 21 callers
Method
Close
()
source/dump.go:256
↓ 21 callers
Method
Error
()
internal/chunk/backend/dbase/split.go:98
↓ 21 callers
Method
ListChannels
(ctx context.Context, proc processor.Channels, p *slack.GetConversationsParameters)
internal/chunk/control/interfaces.go:35
↓ 21 callers
Function
Load
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 callers
Function
MarshalJSON
MarshalJSON marshals data to JSON and returns the byte slice.
internal/testutil/json.go:24
↓ 21 callers
Function
NewErrIncorrectType
(want, got any)
internal/viewer/renderer/slack.go:189
↓ 21 callers
Function
NewMockSlack
NewMockSlack creates a new mock instance.
internal/client/mock_client/mock_client.go:34
↓ 21 callers
Method
Split
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 callers
Method
Type
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 callers
Function
fe
(e,t,n)
internal/viewer/static/htmx.min.js:1
↓ 20 callers
Method
AllForChunk
(ctx context.Context, conn sqlx.QueryerContext, chunkID int64)
internal/chunk/backend/dbase/repository/generic.go:63
↓ 20 callers
Method
AllMessages
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 callers
Method
FS
FS should return the filesystem with file attachments.
source/filestorage.go:39
↓ 20 callers
Method
ThreadMessages
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 callers
Function
DummyChannel
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