Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/castai/openwebui-content-sync
/ functions
Functions
204 in github.com/castai/openwebui-content-sync
⨍
Functions
204
◇
Types & classes
86
↓ 15 callers
Function
getEnv
(key, defaultValue string)
internal/config/config.go:245
↓ 9 callers
Function
Load
Load loads configuration from file and environment variables
internal/config/config.go:136
↓ 8 callers
Function
NewServer
NewServer creates a new health check server
internal/health/health.go:24
↓ 7 callers
Method
GetLastSync
GetLastSync returns the last sync time
internal/adapter/slack.go:1129
↓ 7 callers
Function
NewSlackAdapter
NewSlackAdapter creates a new Slack adapter
internal/adapter/slack.go:91
↓ 6 callers
Method
Name
Name returns the adapter name
internal/adapter/adapter.go:22
↓ 6 callers
Function
New
New creates a new scheduler
internal/scheduler/scheduler.go:23
↓ 6 callers
Function
NewClient
NewClient creates a new OpenWebUI API client
internal/openwebui/client.go:62
↓ 5 callers
Function
DefaultRetryConfig
DefaultRetryConfig returns a sensible default retry configuration
internal/utils/retry.go:24
↓ 5 callers
Function
RetryWithBackoff
RetryWithBackoff executes a function with exponential backoff retry logic
internal/utils/retry.go:128
↓ 5 callers
Method
Start
Start starts the health check server
internal/health/health.go:44
↓ 5 callers
Method
Stop
Stop stops the health check server
internal/health/health.go:49
↓ 5 callers
Method
loadMessagesFromStorage
loadMessagesFromStorage loads messages from local storage
internal/adapter/slack.go:1076
↓ 4 callers
Function
NewConfluenceAdapter
NewConfluenceAdapter creates a new Confluence adapter
internal/adapter/confluence.go:201
↓ 4 callers
Method
messagesToFileContent
messagesToFileContent converts Slack messages to markdown content
internal/adapter/slack.go:934
↓ 4 callers
Function
sanitizeChannelName
sanitizeChannelName sanitizes channel name for use in filenames
internal/adapter/slack.go:1139
↓ 3 callers
Method
HtmlToMarkdown
HtmlToMarkdown converts HTML content to markdown
internal/adapter/jira.go:500
↓ 3 callers
Method
HtmlToText
htmlToText converts HTML content to plain text
internal/adapter/confluence.go:932
↓ 3 callers
Method
Name
Name returns the adapter name
internal/adapter/slack.go:166
↓ 3 callers
Function
NewGitHubAdapter
NewGitHubAdapter creates a new GitHub adapter
internal/adapter/github.go:28
↓ 3 callers
Function
NewLocalFolderAdapter
NewLocalFolderAdapter creates a new local folder adapter
internal/adapter/local.go:42
↓ 3 callers
Method
RunSyncWithContext
RunSyncWithContext runs a synchronization cycle with the provided context
internal/scheduler/scheduler.go:58
↓ 3 callers
Method
SanitizeFilename
sanitizeFilename converts a title to a safe filename
internal/adapter/confluence.go:991
↓ 3 callers
Method
loadFileIndex
loadFileIndex loads the file index from disk
internal/sync/manager.go:490
↓ 3 callers
Method
saveFileIndex
saveFileIndex saves the file index to disk
internal/sync/manager.go:508
↓ 3 callers
Method
syncFile
syncFile synchronizes a single file
internal/sync/manager.go:253
↓ 2 callers
Method
FetchFiles
FetchFiles retrieves messages from Slack channels and converts them to files
internal/adapter/slack.go:171
↓ 2 callers
Method
FetchFiles
FetchFiles retrieves files from the data source
internal/adapter/adapter.go:25
↓ 2 callers
Method
GetLastSync
GetLastSync returns the last sync timestamp
internal/adapter/github.go:260
↓ 2 callers
Method
GetLastSync
GetLastSync returns the last sync time
internal/adapter/confluence.go:1020
↓ 2 callers
Method
GetLastSync
GetLastSync returns the last sync time
internal/adapter/local.go:241
↓ 2 callers
Method
HtmlToMarkdown
HtmlToMarkdown converts HTML content to markdown
internal/adapter/confluence.go:911
↓ 2 callers
Method
Name
Name returns the adapter name
internal/adapter/github.go:67
↓ 2 callers
Method
Name
Name returns the adapter name
internal/adapter/confluence.go:255
↓ 2 callers
Function
NewManager
NewManager creates a new sync manager
internal/sync/manager.go:39
↓ 2 callers
Method
RemoveFileFromKnowledge
(ctx context.Context, knowledgeID, fileID string)
internal/openwebui/interface.go:13
↓ 2 callers
Method
SetLastSync
SetLastSync updates the last sync time
internal/adapter/slack.go:1134
↓ 2 callers
Method
fetchIssue
fetchIssue fetches a single issue by ID using the issue endpoint
internal/adapter/jira.go:426
↓ 2 callers
Method
fetchPageByID
fetchPageByID fetches a specific page by its ID
internal/adapter/confluence.go:509
↓ 2 callers
Method
fetchUsersByIds
fetchUsersByIds fetches user information for multiple account IDs using the bulk API
internal/adapter/confluence.go:1030
↓ 2 callers
Method
isBinaryFile
isBinaryFile checks if content appears to be binary
internal/adapter/local.go:211
↓ 2 callers
Function
isTextFile
isTextFile checks if a file is likely to be a text file
internal/adapter/github.go:206
↓ 2 callers
Method
joinChannel
joinChannel attempts to join a Slack channel with retry logic
internal/adapter/slack.go:1334
↓ 2 callers
Method
logJoinError
logJoinError logs detailed information about channel join errors to a file
internal/adapter/slack.go:827
↓ 2 callers
Method
processPage
processPage processes a single page and returns a File
internal/adapter/confluence.go:612
↓ 2 callers
Method
saveFileLocally
saveFileLocally saves a file to the local storage
internal/sync/manager.go:474
↓ 2 callers
Method
saveMessagesToStorage
saveMessagesToStorage saves messages to local storage for history tracking
internal/adapter/slack.go:1021
↓ 2 callers
Method
shouldIgnoreFile
shouldIgnoreFile checks if a file should be ignored based on common patterns
internal/adapter/local.go:172
↓ 1 callers
Method
AddFileToKnowledge
(ctx context.Context, knowledgeID, fileID string)
internal/openwebui/interface.go:12
↓ 1 callers
Method
AddFileToKnowledge
AddFileToKnowledge adds a file to a knowledge source
internal/openwebui/client.go:228
↓ 1 callers
Method
DeleteFile
(ctx context.Context, fileID string)
internal/openwebui/interface.go:15
↓ 1 callers
Method
FetchFiles
FetchFiles retrieves files from GitHub repositories
internal/adapter/github.go:72
↓ 1 callers
Method
FetchFiles
FetchFiles retrieves files from local folders
internal/adapter/local.go:81
↓ 1 callers
Method
GetFile
GetFile retrieves a file by ID
internal/openwebui/client.go:368
↓ 1 callers
Function
GetFileHash
GetFileHash calculates the hash of a file
internal/sync/manager.go:530
↓ 1 callers
Method
GetKnowledgeFiles
(ctx context.Context, knowledgeID string)
internal/openwebui/interface.go:14
↓ 1 callers
Function
GetRetryDelay
GetRetryDelay calculates the appropriate delay for retrying based on error type
internal/utils/retry.go:92
↓ 1 callers
Method
InitializeFileIndex
InitializeFileIndex populates the file index with existing files from OpenWebUI
internal/sync/manager.go:71
↓ 1 callers
Function
IsRetryableError
IsRetryableError checks if an error is retryable
internal/utils/retry.go:34
↓ 1 callers
Method
ListKnowledge
(ctx context.Context)
internal/openwebui/interface.go:11
↓ 1 callers
Method
ListKnowledge
ListKnowledge retrieves all knowledge sources
internal/openwebui/client.go:171
↓ 1 callers
Method
Name
Name returns the adapter name
internal/adapter/local.go:76
↓ 1 callers
Function
NewJiraAdapter
NewJiraAdapter creates a new Jira adapter
internal/adapter/jira.go:250
↓ 1 callers
Method
RemoveFileFromKnowledge
RemoveFileFromKnowledge removes a file from a knowledge source
internal/openwebui/client.go:407
↓ 1 callers
Method
SetKnowledgeID
SetKnowledgeID sets the knowledge ID for file operations
internal/sync/manager.go:65
↓ 1 callers
Method
SetLastSync
SetLastSync updates the last sync timestamp
internal/adapter/github.go:265
↓ 1 callers
Method
SetLastSync
SetLastSync sets the last sync time
internal/adapter/confluence.go:1025
↓ 1 callers
Method
SetLastSync
SetLastSync sets the last sync time
internal/adapter/local.go:246
↓ 1 callers
Method
SetLastSync
SetLastSync updates the last sync timestamp
internal/adapter/adapter.go:31
↓ 1 callers
Method
Start
Start starts the scheduler
internal/scheduler/scheduler.go:33
↓ 1 callers
Method
SyncFiles
(ctx context.Context, adapters []adapter.Adapter)
internal/sync/interface.go:11
↓ 1 callers
Method
UploadFile
(ctx context.Context, filename string, content []byte)
internal/openwebui/interface.go:9
↓ 1 callers
Method
UploadFile
UploadFile uploads a file to OpenWebUI
internal/openwebui/client.go:73
↓ 1 callers
Method
channelHasHistory
channelHasHistory returns true if we've previously stored any messages for the channel
internal/adapter/slack.go:32
↓ 1 callers
Method
cleanupOrphanedFiles
cleanupOrphanedFiles removes files from OpenWebUI that are no longer present in repositories
internal/sync/manager.go:414
↓ 1 callers
Method
convertAttachments
convertAttachments converts Slack attachments to our format
internal/adapter/slack.go:771
↓ 1 callers
Method
convertFiles
convertFiles converts Slack files to our format
internal/adapter/slack.go:756
↓ 1 callers
Method
convertReactions
convertReactions converts Slack reactions to our format
internal/adapter/slack.go:743
↓ 1 callers
Method
convertSlackMessage
convertSlackMessage converts a Slack message to our format
internal/adapter/slack.go:677
↓ 1 callers
Function
createTestConfig
Helper function to create test config
main_test.go:132
↓ 1 callers
Method
discoverChannelsByRegex
discoverChannelsByRegex discovers channels that match the configured regex patterns
internal/adapter/slack.go:1161
↓ 1 callers
Method
extractText
extractText recursively extracts text from HTML nodes
internal/adapter/confluence.go:945
↓ 1 callers
Method
fetchAllIssueIDs
fetchAllIssueIDs fetches all issue IDs for a project using the search endpoint with pagination
internal/adapter/jira.go:351
↓ 1 callers
Method
fetchBlogpostBody
fetchBlogpostBody fetches the body content of a specific blog post
internal/adapter/confluence.go:870
↓ 1 callers
Method
fetchChannelMessages
fetchChannelMessages retrieves messages from a specific Slack channel
internal/adapter/slack.go:465
↓ 1 callers
Method
fetchComment
fetchComment fetches a single comment by URL and returns only the renderedBody and author displayName
internal/adapter/jira_comment.go:20
↓ 1 callers
Method
fetchCommentsForIssue
fetchCommentsForIssue fetches all comments for a specific issue and returns only the renderedBody and author displayName
internal/adapter/jira_comment.go:70
↓ 1 callers
Method
fetchFolderFiles
fetchFolderFiles fetches files from a specific folder recursively
internal/adapter/local.go:100
↓ 1 callers
Method
fetchIssues
fetchIssues fetches all issues from a Jira project using search endpoint and individual issue fetching
internal/adapter/jira.go:328
↓ 1 callers
Method
fetchPageBody
fetchPageBody fetches the body content of a specific page
internal/adapter/confluence.go:656
↓ 1 callers
Method
fetchRepositoryFiles
fetchRepositoryFiles fetches files from a specific repository
internal/adapter/github.go:91
↓ 1 callers
Method
fetchSpaceBlogposts
fetchSpaceBlogposts fetches all blog posts from a space using space ID
internal/adapter/confluence.go:697
↓ 1 callers
Method
fetchSpacePages
fetchSpacePages fetches all pages from a space using space ID
internal/adapter/confluence.go:414
↓ 1 callers
Method
fetchSubPages
fetchSubPages fetches all sub-pages under a specific parent page
internal/adapter/confluence.go:543
↓ 1 callers
Method
fetchThreadReplies
fetchThreadReplies retrieves replies to a specific thread
internal/adapter/slack.go:600
↓ 1 callers
Method
getAllChannels
getAllChannels retrieves all channels the bot can access
internal/adapter/slack.go:1267
↓ 1 callers
Method
getFileContent
getFileContent retrieves the actual content of a file
internal/adapter/github.go:179
↓ 1 callers
Method
getSpaceID
getSpaceID retrieves the space ID from the space key
internal/adapter/confluence.go:369
↓ 1 callers
Method
healthHandler
healthHandler handles health check requests
internal/health/health.go:54
↓ 1 callers
Method
isPermanentJoinError
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