MCPcopy Create free account

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

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

↓ 15 callersFunctiongetEnv
(key, defaultValue string)
internal/config/config.go:245
↓ 9 callersFunctionLoad
Load loads configuration from file and environment variables
internal/config/config.go:136
↓ 8 callersFunctionNewServer
NewServer creates a new health check server
internal/health/health.go:24
↓ 7 callersMethodGetLastSync
GetLastSync returns the last sync time
internal/adapter/slack.go:1129
↓ 7 callersFunctionNewSlackAdapter
NewSlackAdapter creates a new Slack adapter
internal/adapter/slack.go:91
↓ 6 callersMethodName
Name returns the adapter name
internal/adapter/adapter.go:22
↓ 6 callersFunctionNew
New creates a new scheduler
internal/scheduler/scheduler.go:23
↓ 6 callersFunctionNewClient
NewClient creates a new OpenWebUI API client
internal/openwebui/client.go:62
↓ 5 callersFunctionDefaultRetryConfig
DefaultRetryConfig returns a sensible default retry configuration
internal/utils/retry.go:24
↓ 5 callersFunctionRetryWithBackoff
RetryWithBackoff executes a function with exponential backoff retry logic
internal/utils/retry.go:128
↓ 5 callersMethodStart
Start starts the health check server
internal/health/health.go:44
↓ 5 callersMethodStop
Stop stops the health check server
internal/health/health.go:49
↓ 5 callersMethodloadMessagesFromStorage
loadMessagesFromStorage loads messages from local storage
internal/adapter/slack.go:1076
↓ 4 callersFunctionNewConfluenceAdapter
NewConfluenceAdapter creates a new Confluence adapter
internal/adapter/confluence.go:201
↓ 4 callersMethodmessagesToFileContent
messagesToFileContent converts Slack messages to markdown content
internal/adapter/slack.go:934
↓ 4 callersFunctionsanitizeChannelName
sanitizeChannelName sanitizes channel name for use in filenames
internal/adapter/slack.go:1139
↓ 3 callersMethodHtmlToMarkdown
HtmlToMarkdown converts HTML content to markdown
internal/adapter/jira.go:500
↓ 3 callersMethodHtmlToText
htmlToText converts HTML content to plain text
internal/adapter/confluence.go:932
↓ 3 callersMethodName
Name returns the adapter name
internal/adapter/slack.go:166
↓ 3 callersFunctionNewGitHubAdapter
NewGitHubAdapter creates a new GitHub adapter
internal/adapter/github.go:28
↓ 3 callersFunctionNewLocalFolderAdapter
NewLocalFolderAdapter creates a new local folder adapter
internal/adapter/local.go:42
↓ 3 callersMethodRunSyncWithContext
RunSyncWithContext runs a synchronization cycle with the provided context
internal/scheduler/scheduler.go:58
↓ 3 callersMethodSanitizeFilename
sanitizeFilename converts a title to a safe filename
internal/adapter/confluence.go:991
↓ 3 callersMethodloadFileIndex
loadFileIndex loads the file index from disk
internal/sync/manager.go:490
↓ 3 callersMethodsaveFileIndex
saveFileIndex saves the file index to disk
internal/sync/manager.go:508
↓ 3 callersMethodsyncFile
syncFile synchronizes a single file
internal/sync/manager.go:253
↓ 2 callersMethodFetchFiles
FetchFiles retrieves messages from Slack channels and converts them to files
internal/adapter/slack.go:171
↓ 2 callersMethodFetchFiles
FetchFiles retrieves files from the data source
internal/adapter/adapter.go:25
↓ 2 callersMethodGetLastSync
GetLastSync returns the last sync timestamp
internal/adapter/github.go:260
↓ 2 callersMethodGetLastSync
GetLastSync returns the last sync time
internal/adapter/confluence.go:1020
↓ 2 callersMethodGetLastSync
GetLastSync returns the last sync time
internal/adapter/local.go:241
↓ 2 callersMethodHtmlToMarkdown
HtmlToMarkdown converts HTML content to markdown
internal/adapter/confluence.go:911
↓ 2 callersMethodName
Name returns the adapter name
internal/adapter/github.go:67
↓ 2 callersMethodName
Name returns the adapter name
internal/adapter/confluence.go:255
↓ 2 callersFunctionNewManager
NewManager creates a new sync manager
internal/sync/manager.go:39
↓ 2 callersMethodRemoveFileFromKnowledge
(ctx context.Context, knowledgeID, fileID string)
internal/openwebui/interface.go:13
↓ 2 callersMethodSetLastSync
SetLastSync updates the last sync time
internal/adapter/slack.go:1134
↓ 2 callersMethodfetchIssue
fetchIssue fetches a single issue by ID using the issue endpoint
internal/adapter/jira.go:426
↓ 2 callersMethodfetchPageByID
fetchPageByID fetches a specific page by its ID
internal/adapter/confluence.go:509
↓ 2 callersMethodfetchUsersByIds
fetchUsersByIds fetches user information for multiple account IDs using the bulk API
internal/adapter/confluence.go:1030
↓ 2 callersMethodisBinaryFile
isBinaryFile checks if content appears to be binary
internal/adapter/local.go:211
↓ 2 callersFunctionisTextFile
isTextFile checks if a file is likely to be a text file
internal/adapter/github.go:206
↓ 2 callersMethodjoinChannel
joinChannel attempts to join a Slack channel with retry logic
internal/adapter/slack.go:1334
↓ 2 callersMethodlogJoinError
logJoinError logs detailed information about channel join errors to a file
internal/adapter/slack.go:827
↓ 2 callersMethodprocessPage
processPage processes a single page and returns a File
internal/adapter/confluence.go:612
↓ 2 callersMethodsaveFileLocally
saveFileLocally saves a file to the local storage
internal/sync/manager.go:474
↓ 2 callersMethodsaveMessagesToStorage
saveMessagesToStorage saves messages to local storage for history tracking
internal/adapter/slack.go:1021
↓ 2 callersMethodshouldIgnoreFile
shouldIgnoreFile checks if a file should be ignored based on common patterns
internal/adapter/local.go:172
↓ 1 callersMethodAddFileToKnowledge
(ctx context.Context, knowledgeID, fileID string)
internal/openwebui/interface.go:12
↓ 1 callersMethodAddFileToKnowledge
AddFileToKnowledge adds a file to a knowledge source
internal/openwebui/client.go:228
↓ 1 callersMethodDeleteFile
(ctx context.Context, fileID string)
internal/openwebui/interface.go:15
↓ 1 callersMethodFetchFiles
FetchFiles retrieves files from GitHub repositories
internal/adapter/github.go:72
↓ 1 callersMethodFetchFiles
FetchFiles retrieves files from local folders
internal/adapter/local.go:81
↓ 1 callersMethodGetFile
GetFile retrieves a file by ID
internal/openwebui/client.go:368
↓ 1 callersFunctionGetFileHash
GetFileHash calculates the hash of a file
internal/sync/manager.go:530
↓ 1 callersMethodGetKnowledgeFiles
(ctx context.Context, knowledgeID string)
internal/openwebui/interface.go:14
↓ 1 callersFunctionGetRetryDelay
GetRetryDelay calculates the appropriate delay for retrying based on error type
internal/utils/retry.go:92
↓ 1 callersMethodInitializeFileIndex
InitializeFileIndex populates the file index with existing files from OpenWebUI
internal/sync/manager.go:71
↓ 1 callersFunctionIsRetryableError
IsRetryableError checks if an error is retryable
internal/utils/retry.go:34
↓ 1 callersMethodListKnowledge
(ctx context.Context)
internal/openwebui/interface.go:11
↓ 1 callersMethodListKnowledge
ListKnowledge retrieves all knowledge sources
internal/openwebui/client.go:171
↓ 1 callersMethodName
Name returns the adapter name
internal/adapter/local.go:76
↓ 1 callersFunctionNewJiraAdapter
NewJiraAdapter creates a new Jira adapter
internal/adapter/jira.go:250
↓ 1 callersMethodRemoveFileFromKnowledge
RemoveFileFromKnowledge removes a file from a knowledge source
internal/openwebui/client.go:407
↓ 1 callersMethodSetKnowledgeID
SetKnowledgeID sets the knowledge ID for file operations
internal/sync/manager.go:65
↓ 1 callersMethodSetLastSync
SetLastSync updates the last sync timestamp
internal/adapter/github.go:265
↓ 1 callersMethodSetLastSync
SetLastSync sets the last sync time
internal/adapter/confluence.go:1025
↓ 1 callersMethodSetLastSync
SetLastSync sets the last sync time
internal/adapter/local.go:246
↓ 1 callersMethodSetLastSync
SetLastSync updates the last sync timestamp
internal/adapter/adapter.go:31
↓ 1 callersMethodStart
Start starts the scheduler
internal/scheduler/scheduler.go:33
↓ 1 callersMethodSyncFiles
(ctx context.Context, adapters []adapter.Adapter)
internal/sync/interface.go:11
↓ 1 callersMethodUploadFile
(ctx context.Context, filename string, content []byte)
internal/openwebui/interface.go:9
↓ 1 callersMethodUploadFile
UploadFile uploads a file to OpenWebUI
internal/openwebui/client.go:73
↓ 1 callersMethodchannelHasHistory
channelHasHistory returns true if we've previously stored any messages for the channel
internal/adapter/slack.go:32
↓ 1 callersMethodcleanupOrphanedFiles
cleanupOrphanedFiles removes files from OpenWebUI that are no longer present in repositories
internal/sync/manager.go:414
↓ 1 callersMethodconvertAttachments
convertAttachments converts Slack attachments to our format
internal/adapter/slack.go:771
↓ 1 callersMethodconvertFiles
convertFiles converts Slack files to our format
internal/adapter/slack.go:756
↓ 1 callersMethodconvertReactions
convertReactions converts Slack reactions to our format
internal/adapter/slack.go:743
↓ 1 callersMethodconvertSlackMessage
convertSlackMessage converts a Slack message to our format
internal/adapter/slack.go:677
↓ 1 callersFunctioncreateTestConfig
Helper function to create test config
main_test.go:132
↓ 1 callersMethoddiscoverChannelsByRegex
discoverChannelsByRegex discovers channels that match the configured regex patterns
internal/adapter/slack.go:1161
↓ 1 callersMethodextractText
extractText recursively extracts text from HTML nodes
internal/adapter/confluence.go:945
↓ 1 callersMethodfetchAllIssueIDs
fetchAllIssueIDs fetches all issue IDs for a project using the search endpoint with pagination
internal/adapter/jira.go:351
↓ 1 callersMethodfetchBlogpostBody
fetchBlogpostBody fetches the body content of a specific blog post
internal/adapter/confluence.go:870
↓ 1 callersMethodfetchChannelMessages
fetchChannelMessages retrieves messages from a specific Slack channel
internal/adapter/slack.go:465
↓ 1 callersMethodfetchComment
fetchComment fetches a single comment by URL and returns only the renderedBody and author displayName
internal/adapter/jira_comment.go:20
↓ 1 callersMethodfetchCommentsForIssue
fetchCommentsForIssue fetches all comments for a specific issue and returns only the renderedBody and author displayName
internal/adapter/jira_comment.go:70
↓ 1 callersMethodfetchFolderFiles
fetchFolderFiles fetches files from a specific folder recursively
internal/adapter/local.go:100
↓ 1 callersMethodfetchIssues
fetchIssues fetches all issues from a Jira project using search endpoint and individual issue fetching
internal/adapter/jira.go:328
↓ 1 callersMethodfetchPageBody
fetchPageBody fetches the body content of a specific page
internal/adapter/confluence.go:656
↓ 1 callersMethodfetchRepositoryFiles
fetchRepositoryFiles fetches files from a specific repository
internal/adapter/github.go:91
↓ 1 callersMethodfetchSpaceBlogposts
fetchSpaceBlogposts fetches all blog posts from a space using space ID
internal/adapter/confluence.go:697
↓ 1 callersMethodfetchSpacePages
fetchSpacePages fetches all pages from a space using space ID
internal/adapter/confluence.go:414
↓ 1 callersMethodfetchSubPages
fetchSubPages fetches all sub-pages under a specific parent page
internal/adapter/confluence.go:543
↓ 1 callersMethodfetchThreadReplies
fetchThreadReplies retrieves replies to a specific thread
internal/adapter/slack.go:600
↓ 1 callersMethodgetAllChannels
getAllChannels retrieves all channels the bot can access
internal/adapter/slack.go:1267
↓ 1 callersMethodgetFileContent
getFileContent retrieves the actual content of a file
internal/adapter/github.go:179
↓ 1 callersMethodgetSpaceID
getSpaceID retrieves the space ID from the space key
internal/adapter/confluence.go:369
↓ 1 callersMethodhealthHandler
healthHandler handles health check requests
internal/health/health.go:54
↓ 1 callersMethodisPermanentJoinError
isPermanentJoinError checks if a join error is permanent and should skip the channel
internal/adapter/slack.go:854
next →1–100 of 204, ranked by callers