MCPcopy Create free account

hub / github.com/castai/openwebui-content-sync / functions

Functions204 in github.com/castai/openwebui-content-sync

↓ 1 callersMethodlistLocalChannels
listLocalChannels scans local storage and returns channel mappings for any channel directories found. ChannelName is set to the directory name if a re
internal/adapter/slack.go:1098
↓ 1 callersMethodprocessBlogpost
processBlogpost processes a single blog post and returns a File
internal/adapter/confluence.go:825
↓ 1 callersMethodprocessContent
processContent processes a GitHub content item recursively
internal/adapter/github.go:120
↓ 1 callersMethodprocessIssue
processIssue processes a single Jira issue and returns a File
internal/adapter/jira.go:521
↓ 1 callersMethodreadyHandler
readyHandler handles readiness check requests
internal/health/health.go:67
↓ 1 callersMethodsaveChannelTracking
saveChannelTracking saves a tracking file with all channels and their knowledge IDs
internal/adapter/slack.go:881
↓ 1 callersMethodtestChannelAccess
testChannelAccess tests if the bot can access the channel and attempts to join if needed
internal/adapter/slack.go:786
↓ 1 callersMethodwaitForFileProcessing
waitForFileProcessing waits for a file to finish processing with adaptive polling Uses exponential backoff to handle both quick and slow file ingestio
internal/openwebui/client.go:287
MethodAddFileToKnowledge
AddFileToKnowledge mocks the AddFileToKnowledge method
internal/mocks/mocks.go:107
FunctionBenchmarkSanitizeChannelName
Benchmark tests
internal/adapter/slack_test.go:281
FunctionBenchmarkSlackAdapter_Creation
(b *testing.B)
internal/adapter/slack_test.go:288
MethodDeleteFile
DeleteFile deletes a file from OpenWebUI
internal/openwebui/client.go:450
MethodDeleteFile
DeleteFile mocks the DeleteFile method
internal/mocks/mocks.go:159
MethodFetchFiles
FetchFiles mocks the FetchFiles method
internal/mocks/mocks.go:184
MethodFetchFiles
FetchFiles fetches files from all configured Confluence spaces and parent pages
internal/adapter/confluence.go:260
MethodFetchFiles
FetchFiles fetches all issues from the configured Jira projects
internal/adapter/jira.go:296
MethodGetFile
(ctx context.Context, fileID string)
internal/openwebui/interface.go:10
MethodGetFile
GetFile mocks the GetFile method
internal/mocks/mocks.go:57
MethodGetKnowledgeFiles
GetKnowledgeFiles retrieves files from a specific knowledge source
internal/openwebui/client.go:485
MethodGetKnowledgeFiles
GetKnowledgeFiles mocks the GetKnowledgeFiles method
internal/mocks/mocks.go:123
MethodGetLastSync
GetLastSync mocks the GetLastSync method
internal/mocks/mocks.go:201
MethodGetLastSync
GetLastSync returns the last sync time
internal/adapter/jira.go:582
MethodGetLastSync
GetLastSync returns the last sync timestamp
internal/adapter/adapter.go:28
MethodInitializeFileIndex
(ctx context.Context, adapters []adapter.Adapter)
internal/scheduler/scheduler_simple_test.go:24
MethodInitializeFileIndex
(ctx context.Context, adapters []adapter.Adapter)
internal/sync/interface.go:13
MethodListKnowledge
ListKnowledge mocks the ListKnowledge method
internal/mocks/mocks.go:87
MethodName
Name mocks the Name method
internal/mocks/mocks.go:176
MethodName
Name returns the adapter name
internal/adapter/jira.go:291
MethodRemoveFileFromKnowledge
RemoveFileFromKnowledge mocks the RemoveFileFromKnowledge method
internal/mocks/mocks.go:115
MethodSetKnowledgeID
(knowledgeID string)
internal/scheduler/scheduler_simple_test.go:20
MethodSetKnowledgeID
(knowledgeID string)
internal/sync/interface.go:12
MethodSetLastSync
SetLastSync mocks the SetLastSync method
internal/mocks/mocks.go:209
MethodSetLastSync
SetLastSync sets the last sync time
internal/adapter/jira.go:587
MethodSyncFiles
(ctx context.Context, adapters []adapter.Adapter)
internal/scheduler/scheduler_simple_test.go:16
MethodSyncFiles
SyncFiles synchronizes files from adapters to OpenWebUI
internal/sync/manager.go:179
FunctionTestClient_AddFileToKnowledge
(t *testing.T)
internal/openwebui/client_test.go:209
FunctionTestClient_ListKnowledge
(t *testing.T)
internal/openwebui/client_test.go:161
FunctionTestClient_RemoveFileFromKnowledge
(t *testing.T)
internal/openwebui/client_test.go:279
FunctionTestClient_UploadFile
(t *testing.T)
internal/openwebui/client_test.go:26
FunctionTestConfig_StructFields
(t *testing.T)
internal/config/config_test.go:233
FunctionTestConfluenceAdapter_GetSetLastSync
(t *testing.T)
internal/adapter/confluence_test.go:107
FunctionTestConfluenceAdapter_Name
(t *testing.T)
internal/adapter/confluence_test.go:87
FunctionTestFile_String
(t *testing.T)
internal/adapter/github_test.go:160
FunctionTestGetEnv
(t *testing.T)
internal/config/config_test.go:207
FunctionTestGetFileHash
(t *testing.T)
internal/sync/manager_simple_test.go:179
FunctionTestGitHubAdapter_FetchFiles
(t *testing.T)
internal/adapter/github_test.go:138
FunctionTestGitHubAdapter_GetSetLastSync
(t *testing.T)
internal/adapter/github_test.go:18
FunctionTestGitHubAdapter_Name
(t *testing.T)
internal/adapter/github_test.go:11
FunctionTestHealthResponse_JSON
(t *testing.T)
internal/health/health_test.go:147
FunctionTestHtmlToText
(t *testing.T)
internal/adapter/confluence_test.go:164
FunctionTestIsTextFile
(t *testing.T)
internal/adapter/github_test.go:94
FunctionTestLoad_DefaultConfig
(t *testing.T)
internal/config/config_test.go:10
FunctionTestLoad_EnvironmentOverride
(t *testing.T)
internal/config/config_test.go:102
FunctionTestLoad_FileAndEnvironment
(t *testing.T)
internal/config/config_test.go:161
FunctionTestLoad_FromFile
(t *testing.T)
internal/config/config_test.go:35
FunctionTestLoad_InvalidYAML
(t *testing.T)
internal/config/config_test.go:138
FunctionTestLocalFolderAdapter_FetchFiles
(t *testing.T)
internal/adapter/local_test.go:117
FunctionTestLocalFolderAdapter_GetSetLastSync
(t *testing.T)
internal/adapter/local_test.go:100
FunctionTestLocalFolderAdapter_Name
(t *testing.T)
internal/adapter/local_test.go:93
FunctionTestLocalFolderAdapter_isBinaryFile
(t *testing.T)
internal/adapter/local_test.go:206
FunctionTestLocalFolderAdapter_shouldIgnoreFile
(t *testing.T)
internal/adapter/local_test.go:181
FunctionTestMain_ContextHandling
(t *testing.T)
main_test.go:155
FunctionTestMain_DefaultFlagValue
(t *testing.T)
main_test.go:111
FunctionTestMain_ErrorHandling
(t *testing.T)
main_test.go:228
FunctionTestMain_FlagParsing
(t *testing.T)
main_test.go:91
FunctionTestMain_ResourceCleanup
(t *testing.T)
main_test.go:242
FunctionTestMain_SignalHandling
(t *testing.T)
main_test.go:179
FunctionTestMain_TimeHandling
(t *testing.T)
main_test.go:205
FunctionTestMain_WithConfigFile
(t *testing.T)
main_test.go:14
FunctionTestMain_WithInvalidConfigFile
(t *testing.T)
main_test.go:51
FunctionTestMain_WithNonExistentConfigFile
(t *testing.T)
main_test.go:75
FunctionTestManager_SetKnowledgeID
(t *testing.T)
internal/sync/manager_simple_test.go:41
FunctionTestManager_loadFileIndex
(t *testing.T)
internal/sync/manager_simple_test.go:190
FunctionTestManager_saveFileLocally
(t *testing.T)
internal/sync/manager_simple_test.go:149
FunctionTestManager_syncFile_NewFile
(t *testing.T)
internal/sync/manager_simple_test.go:58
FunctionTestManager_syncFile_UnchangedFile
(t *testing.T)
internal/sync/manager_simple_test.go:105
FunctionTestNew
(t *testing.T)
internal/scheduler/scheduler_simple_test.go:29
FunctionTestNewClient
(t *testing.T)
internal/openwebui/client_test.go:13
FunctionTestNewConfluenceAdapter
(t *testing.T)
internal/adapter/confluence_test.go:10
FunctionTestNewGitHubAdapter
(t *testing.T)
internal/adapter/github_test.go:28
FunctionTestNewLocalFolderAdapter
(t *testing.T)
internal/adapter/local_test.go:13
FunctionTestNewManager
(t *testing.T)
internal/sync/manager_simple_test.go:16
FunctionTestNewServer
(t *testing.T)
internal/health/health_test.go:13
FunctionTestNewSlackAdapter
(t *testing.T)
internal/adapter/slack_test.go:29
FunctionTestSanitizeChannelName
(t *testing.T)
internal/adapter/slack_test.go:191
FunctionTestSanitizeFilename
(t *testing.T)
internal/adapter/confluence_test.go:136
FunctionTestScheduler_Adapters
(t *testing.T)
internal/scheduler/scheduler_simple_test.go:102
FunctionTestScheduler_Interval
(t *testing.T)
internal/scheduler/scheduler_simple_test.go:93
FunctionTestScheduler_RunSync
(t *testing.T)
internal/scheduler/scheduler_simple_test.go:46
FunctionTestScheduler_Start
(t *testing.T)
internal/scheduler/scheduler_simple_test.go:66
FunctionTestServer_ConcurrentRequests
(t *testing.T)
internal/health/health_test.go:194
FunctionTestServer_DifferentPorts
(t *testing.T)
internal/health/health_test.go:178
FunctionTestServer_Start
(t *testing.T)
internal/health/health_test.go:84
FunctionTestServer_Stop
(t *testing.T)
internal/health/health_test.go:126
FunctionTestServer_healthHandler
(t *testing.T)
internal/health/health_test.go:26
FunctionTestServer_readyHandler
(t *testing.T)
internal/health/health_test.go:55
FunctionTestSlackAdapter_FetchFiles_Disabled
(t *testing.T)
internal/adapter/slack_test.go:132
FunctionTestSlackAdapter_FetchFiles_NoToken
(t *testing.T)
internal/adapter/slack_test.go:117
FunctionTestSlackAdapter_InterfaceCompliance
(t *testing.T)
internal/adapter/slack_test.go:222
FunctionTestSlackAdapter_StorageDirectory
(t *testing.T)
internal/adapter/slack_test.go:158
← previousnext →101–200 of 204, ranked by callers