Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/gtsteffaniak/filebrowser
/ functions
Functions
1,657 in github.com/gtsteffaniak/filebrowser
⨍
Functions
1,657
◇
Types & classes
228
↓ 1 callers
Function
validateShareInfo
validateShareInfo migrates share links to add default sidebar links
backend/cmd/share.go:9
↓ 1 callers
Function
validateUserInfo
(newDB bool)
backend/cmd/user.go:17
↓ 1 callers
Function
verifyPragmaSettings
verifyPragmaSettings reads back PRAGMA values to verify they were applied correctly
backend/database/sql/sqlite.go:437
↓ 1 callers
Function
withAuthRateLimitAuthenticated
(fn handleFunc)
backend/http/auth_ratelimit.go:262
↓ 1 callers
Function
withAuthRateLimitModerate
(fn handleFunc)
backend/http/auth_ratelimit.go:250
↓ 1 callers
Function
withAuthRateLimitOIDC
(fn handleFunc)
backend/http/auth_ratelimit.go:256
↓ 1 callers
Function
withBasicAuth
withBasicAuth returns an http.HandlerFunc for use with router.Handle. It extracts Basic Auth credentials and uses the password as a JWT token to authe
backend/http/middleware.go:602
↓ 1 callers
Function
withBasicAuthHelper
withBasicAuthHelper extracts Basic Auth credentials and uses the password as a JWT token to authenticate the user. The username is ignored, and the pa
backend/http/middleware.go:588
↓ 1 callers
Function
withPermShareHelper
(fn handleFunc)
backend/http/middleware.go:577
↓ 1 callers
Function
withSelfOrAdminHelper
Middleware to ensure the user is either the requested user or an admin
backend/http/middleware.go:509
↓ 1 callers
Function
withTimeoutHelper
withTimeoutHelper adds a configurable timeout context to any operation
backend/http/middleware.go:639
↓ 1 callers
Function
withoutUserHelper
(fn handleFunc)
backend/http/middleware.go:276
↓ 1 callers
Function
wrapHandlerBasicAuth
wrapHandlerBasicAuth wraps a handler and automatically sets WWW-Authenticate header for 401 Unauthorized responses, triggering Basic Auth challenge
backend/http/middleware.go:564
Method
AddApiToken
(userID uint, name string, tokenString string, metadata AuthToken)
backend/database/users/storage.go:117
Method
AddApiToken
AddHashedToken adds a token hash to user ID mapping.
backend/database/access/access.go:1285
Function
AddTrailingSlashIfNotExists
NormalizeRulePath ensures directory paths have trailing slashes for consistent rule storage
backend/common/utils/main.go:132
Function
AdminPerms
()
backend/common/settings/settings.go:58
Method
All
()
backend/database/storage/bolt/share.go:18
Method
All
()
backend/database/storage/bolt/indexing.go:15
Method
All
()
backend/database/dbindex/storage.go:12
Method
Auth
Auth authenticates the user via an HTTP header.
backend/auth/proxy.go:20
Method
Auth
Auth authenticates the user via an external JWT token. The token is verified using the configured secret and algorithm.
backend/auth/jwt.go:40
Method
Auth
Auth uses authenticates user 1.
backend/auth/none.go:16
Method
Auth
Auth authenticates the user via a json in content body.
backend/auth/json.go:23
Function
BenchmarkFillIndex
(b *testing.B)
backend/indexing/indexing_test.go:12
Function
BenchmarkGetOrientationFilter
Benchmark the orientation filter generation
backend/ffmpeg/image_test.go:156
Function
BenchmarkNormalizeArchiveEntryName
Benchmarks (optional, keep small)
backend/http/archive_test.go:283
Function
BenchmarkSearchAllIndexes
(b *testing.B)
backend/indexing/search_test.go:51
Function
BenchmarkVideoPreviewSetup
(b *testing.B)
backend/common/settings/video_preview_test.go:250
Function
BuildNode
BuildNode constructs a yaml.Node for any Go value, injecting comments on struct fields.
backend/common/settings/generator.go:512
Function
BuildSearchOptionsFromQuery
BuildSearchOptionsFromQuery merges optional repeated literal terms (HTTP "terms" parameters) with structured filter text ("query" prefix). When termVa
backend/indexing/iteminfo/searchQuery.go:27
Function
BulkInsertFilesForDuplicates
BulkInsertFilesForDuplicates inserts multiple files in a single transaction. This is more efficient than calling InsertFileForDuplicates multiple time
backend/database/sql/duplicates.go:115
Function
CSPNonce
CSPNonce returns a base64-encoded random value suitable for Content-Security-Policy nonces and matching HTML nonce="" attributes (cryptographically ra
backend/common/utils/crypto.go:68
Function
CanConvertImage
(ext string)
backend/ffmpeg/conditions.go:5
Function
CanConvertImage
(ext string)
backend/common/settings/configFunctions.go:3
Function
CanConvertVideo
(ext string)
backend/ffmpeg/conditions.go:16
Function
CanConvertVideo
(ext string)
backend/common/settings/configFunctions.go:14
Function
CanEditOnlyOffice
(modify bool, extention string)
backend/indexing/iteminfo/conditions.go:503
Function
CheckErr
(source string, err error)
backend/common/utils/main.go:17
Function
CheckPathExists
(realPath string)
backend/common/utils/main.go:144
Function
CheckPwd
CheckPwd checks if a password is correct.
backend/common/utils/crypto.go:39
Function
CheckWindowsHidden
(realpath string)
backend/indexing/windows.go:12
Function
Clamp
Clamp returns value clamped between min and max. If value < min, returns min. If value > max, returns max. Otherwise, returns value.
backend/common/utils/main.go:121
Function
CleanUsername
(s string)
backend/database/users/users.go:187
Function
ClearCache
ClearCache clears the access cache (useful for testing)
backend/database/access/access.go:171
Function
ClearCacheDir
(cacheDir string)
backend/adapters/fs/fileutils/file.go:228
Function
ClearDirectoryContents
ClearDirectoryContents removes all files and subdirectories inside dir; dir itself remains. If dir does not exist, returns nil.
backend/adapters/fs/fileutils/file.go:246
Function
ClearTestIndices
ClearTestIndices removes all test indices - call in test cleanup
backend/indexing/test_helpers.go:26
Function
CollectComments
CollectComments parses all Go source in the directory of srcPath and returns CommentsMap.
backend/common/settings/generator.go:37
Function
ConvertPermissionsToUsers
ConvertPermissionsToUsers converts UserDefaultsPermissions to users.Permissions
backend/common/settings/settings.go:24
Function
CopyHelper
Copy copies a file or folder from one place to another.
backend/adapters/fs/fileutils/copy.go:9
Function
CopyResource
(isSrcDir bool, sourceIndex, destIndex, realsrc, realdst string)
backend/adapters/fs/files/files.go:790
Method
CreateDuplicatesTable
CreateDuplicatesTable creates the files table and indexes needed for duplicate detection. This should be called once after creating a TempDB for dupli
backend/database/sql/duplicates.go:22
Function
CreateMockData
(numDirs, numFilesPerDir int)
backend/indexing/mock.go:37
Function
CreateThumbnail
CreateThumbnail decodes an image and creates a fixed-size thumbnail.
backend/preview/image.go:395
Function
CreateUser
create new user
backend/database/storage/storage.go:107
Function
CredentialFromLibrary
CredentialFromLibrary converts a library Credential to our BoltDB-safe format.
backend/database/users/webauthn.go:84
Method
DB
DB returns the underlying *sql.DB connection. This allows callers to execute custom SQL queries if needed.
backend/database/sql/sqlite.go:376
Function
DebouncedBroadcast
(eventType, message string)
backend/events/eventRouter.go:128
Function
DelThumbs
(ctx context.Context, file iteminfo.ExtendedFileInfo)
backend/preview/preview.go:641
Method
Delete
Delete allows you to delete a user by its name or username. The provided id must be a string for username lookup or a uint for id lookup. If id is nei
backend/database/users/storage.go:162
Method
Delete
(path string)
backend/database/storage/bolt/indexing.go:48
Method
Delete
(path string)
backend/database/dbindex/storage.go:16
Method
Delete
Delete wraps StorageBackend.Delete
backend/database/dbindex/storage.go:142
Method
Delete
Delete wraps StorageBackend.Delete
backend/database/share/storage.go:392
Method
Delete
(id any)
backend/database/crud/crud.go:32
Method
Delete
(ctx context.Context, key string)
backend/adapters/fs/diskcache/noop_cache.go:22
Method
DeleteApiToken
(userID uint, name string)
backend/database/users/storage.go:136
Method
DeleteByID
(id any)
backend/database/users/storage.go:56
Method
DeleteByID
(id uint)
backend/database/storage/bolt/users.go:211
Method
DeleteByID
(id any)
backend/database/dbindex/storage.go:40
Method
DeleteByID
(id any)
backend/database/share/storage.go:49
Method
DeleteByID
(id uint)
backend/auth/json_timing_test.go:87
Method
DeleteByUsername
(username string)
backend/database/storage/bolt/users.go:215
Method
DeleteByUsername
(username string)
backend/auth/json_timing_test.go:96
Function
DetectAllSubtitles
DetectAllSubtitles finds both embedded and external subtitle tracks
backend/ffmpeg/subtitles.go:29
Function
DetectEmbeddedSubtitles
DetectEmbeddedSubtitles detects embedded subtitle streams using ffprobe. This is the public API that can be called from other packages. Returns empty
backend/ffmpeg/subtitles.go:56
Function
EffectiveDirPerm
EffectiveDirPerm returns [PermDir] if [SetFsPermissions] was called, otherwise 0o755. On Unix, [os.Mkdir] with perm 0 fails with permission denied, so
backend/adapters/fs/fileutils/file.go:27
Function
EffectiveFilePerm
EffectiveFilePerm returns [PermFile] if set, otherwise 0o644.
backend/adapters/fs/fileutils/file.go:35
Method
ExplainQueryPlan
ExplainQueryPlan analyzes a query and returns the execution plan as a string. This is useful for debugging and optimizing queries to reduce page cache
backend/database/sql/index.go:584
Function
ExtractGroupsFromClaims
ExtractGroupsFromClaims extracts groups from JWT claims based on the configured groups claim field
backend/auth/jwt.go:199
Function
ExtractSubtitleContent
ExtractSubtitleContent extracts subtitle content without service management
backend/ffmpeg/subtitles.go:163
Function
FileInfoFaster
(opts utils.FileOptions, access *access.Storage, user *users.User, share *share.Storage)
backend/adapters/fs/files/files.go:226
Method
FindByUserID
(id uint)
backend/database/storage/bolt/share.go:28
Method
FindByUserID
FindByUserID returns non-expired shares for the user from the cache.
backend/database/share/storage.go:205
Method
Flush
Flush persists the current in-memory state to the backing store. Call during graceful shutdown to ensure DB matches memory.
backend/database/access/access.go:106
Method
Flush
Flush persists the current in-memory state of all indexes to the backing store. Call during graceful shutdown to ensure DB matches memory.
backend/database/dbindex/storage.go:154
Method
Flush
Flush is a no-op: every share write (Save, Delete, UpdateShares, UpdateSharePath) already updates the database, so the cache and DB stay in sync witho
backend/database/share/storage.go:402
Method
Flush
Flush persists all index information to the database
backend/indexing/indexingFiles.go:1656
Function
GenerateConfigYamlWithEmbedded
GenerateConfigYamlWithEmbedded generates YAML from a given config using embedded YAML content as comment source
backend/common/settings/generator.go:927
Method
GenerateImageFromDoc
(ctx context.Context, file iteminfo.ExtendedFileInfo, tempFilePath string, pageNumber int)
backend/preview/docDefault.go:17
Function
GenerateKey
()
backend/common/utils/crypto.go:57
Function
GenerateKey
GenerateKey generates a key of 512 bits.
backend/common/settings/settings.go:43
Function
GenerateOtpForUser
(user *users.User, userStore *users.Storage)
backend/auth/totp.go:54
Function
GeneratePWAIcons
GeneratePWAIcons generates all PWA and platform icon sizes from favicon source All icons are generated as PNG for maximum compatibility (Apple devices
backend/icons/generator.go:231
Function
GeneratePreview
(ctx context.Context, file iteminfo.ExtendedFileInfo, previewSize, officeUrl string, seekPercentage int)
backend/preview/preview.go:549
Function
GenerateRandomPath
(levels int)
backend/common/utils/mocks.go:9
Function
GenerateRandomSearchTerms
(numTerms int)
backend/common/utils/mocks.go:39
Function
GenerateYaml
()
backend/common/settings/generator.go:864
Method
Get
(t string)
backend/database/storage/bolt/auth.go:13
← previous
next →
901–1,000 of 1,657, ranked by callers