Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudreve/cloudreve
/ functions
Functions
11,486 in github.com/cloudreve/cloudreve
⨍
Functions
11,486
◇
Types & classes
1,532
↓ 1 callers
Function
parseContentRangeOffset
parseContentRangeOffset parses the start offset from a Content-Range header. Content-Range format: "bytes start-end/total" (e.g., "bytes 100-200/1000"
pkg/filemanager/manager/entitysource/entitysource.go:1066
↓ 1 callers
Function
parseGpsInfo
(imageInfo ImageInfo)
pkg/filemanager/driver/cos/media.go:208
↓ 1 callers
Function
parseGpsInfo
(imageInfo map[string]string)
pkg/filemanager/driver/obs/media.go:64
↓ 1 callers
Function
parseGpsInfo
(imageInfo ImageInfo)
pkg/filemanager/driver/oss/media.go:294
↓ 1 callers
Function
parseGpsInfo
(imageInfo map[string]string)
pkg/filemanager/driver/upyun/media.go:81
↓ 1 callers
Function
parseGpsInfo
(imageInfo ImageInfo)
pkg/filemanager/driver/qiniu/media.go:133
↓ 1 callers
Function
parseNoTagLists
(s string)
pkg/webdav/if.go:40
↓ 1 callers
Function
parseRange
parseRange parses a Range header string as per RFC 7233. errNoOverlap is returned if none of the ranges overlap.
pkg/filemanager/manager/entitysource/entitysource.go:982
↓ 1 callers
Function
parseSearchPageToken
(token string)
pkg/filemanager/fs/dbfs/navigator.go:524
↓ 1 callers
Function
parseTaggedLists
(s string)
pkg/webdav/if.go:54
↓ 1 callers
Function
parseTimeout
parseTimeout parses the Timeout HTTP header, as per section 10.7. If s is empty, an infiniteTimeout is returned.
pkg/webdav/lock.go:421
↓ 1 callers
Function
patch
Patch patches the properties of resource name. The return values are constrained in the same manner as DeadPropsHolder.Patch.
pkg/webdav/prop.go:440
↓ 1 callers
Method
popElement
Record that we are ending an element with the given name. The name must match the record at the top of the stack, which must be a pushElement record.
pkg/webdav/internal/xml/xml.go:465
↓ 1 callers
Method
popPrefix
popPrefix pops all defined prefixes for the current element.
pkg/webdav/internal/xml/marshal.go:511
↓ 1 callers
Method
prefixForNS
(url string, isAttr bool)
pkg/webdav/internal/xml/marshal.go:331
↓ 1 callers
Method
processBatch
processBatch processes a batch of physical files with a fresh file manager.
pkg/filemanager/workflows/import.go:180
↓ 1 callers
Method
processBatch
processBatch indexes a batch of files concurrently.
pkg/filemanager/workflows/rebuild_index.go:192
↓ 1 callers
Method
processImport
(ctx context.Context, dep dependency.Dep)
pkg/filemanager/workflows/import.go:123
↓ 1 callers
Method
publishLocked
publishLocked adds an event to the buffer and manages the debounce timer. Caller must hold s.mu.
pkg/filemanager/eventhub/subscriber.go:144
↓ 1 callers
Method
pushEOF
Record that after the current element is finished (that element is already pushed on the stack) Token should return EOF until popEOF is called.
pkg/webdav/internal/xml/xml.go:405
↓ 1 callers
Method
pushElement
Record that we are starting an element with the given name.
pkg/webdav/internal/xml/xml.go:440
↓ 1 callers
Function
rangesMIMESize
rangesMIMESize returns the number of bytes it takes to encode the provided ranges as a multipart response.
pkg/filemanager/manager/entitysource/entitysource.go:1100
↓ 1 callers
Method
readDir
readDir returns the list of files corresponding to the directory dir.
application/statics/embed.go:281
↓ 1 callers
Function
readLockInfo
(r io.Reader)
pkg/webdav/xml.go:53
↓ 1 callers
Function
readPropfind
(r io.Reader)
pkg/webdav/xml.go:179
↓ 1 callers
Function
readProppatch
(r io.Reader)
pkg/webdav/xml.go:497
↓ 1 callers
Method
remove
(id uint64)
pkg/downloader/aria2/rpc/proc.go:25
↓ 1 callers
Function
renderShareOGPage
(c *gin.Context, dep dependency.Dep, id, password string)
middleware/share_preview.go:129
↓ 1 callers
Method
requestCredFromMaster
(ctx context.Context, key string)
pkg/credmanager/credmanager.go:212
↓ 1 callers
Method
run
(ctx context.Context, t Task)
pkg/queue/queue.go:268
↓ 1 callers
Method
runUnix
(server *http.Server)
application/application.go:225
↓ 1 callers
Function
saveTaskToInventory
(ctx context.Context, task Task, newStatus task.Status, q *queue)
pkg/queue/task.go:489
↓ 1 callers
Method
search
(ctx context.Context, parent *File, args *ListArgs)
pkg/filemanager/fs/dbfs/navigator.go:355
↓ 1 callers
Method
searchQuery
(q *ent.FileQuery, args *SearchFileParameters, parents []*ent.File, ownerId int)
inventory/file_utils.go:23
↓ 1 callers
Method
setCurrentVersion
(ctx context.Context, target *File, versionId int)
pkg/filemanager/fs/dbfs/manage.go:785
↓ 1 callers
Method
setNotifier
(ctx context.Context, u url.URL, notifer Notifier)
pkg/downloader/aria2/rpc/call.go:62
↓ 1 callers
Method
setOffline
setOffline marks the subscriber as offline.
pkg/filemanager/eventhub/subscriber.go:255
↓ 1 callers
Method
setOnline
setOnline marks the subscriber as online and flushes any buffered events.
pkg/filemanager/eventhub/subscriber.go:214
↓ 1 callers
Method
shouldExpire
shouldExpire returns whether the subscriber should be expired (offline for too long).
pkg/filemanager/eventhub/subscriber.go:308
↓ 1 callers
Method
shouldGenerateMediaMeta
(ctx context.Context, d driver.Handler, fileName string)
pkg/filemanager/manager/mediameta.go:167
↓ 1 callers
Method
shouldIndexFullText
shouldIndexFullText checks if a file should be indexed for full-text search.
pkg/filemanager/manager/fulltextindex.go:453
↓ 1 callers
Function
shutdown
(sigChan chan os.Signal, logger logging.Logger, server application.Server)
cmd/server.go:50
↓ 1 callers
Function
slaveTaskPropsFromContext
(ctx context.Context)
service/node/task.go:90
↓ 1 callers
Method
slaveTransfer
(ctx context.Context, dep dependency.Dep)
pkg/filemanager/workflows/remote_download.go:326
↓ 1 callers
Function
softDeleteInterceptors
(d interface { P(w interface { WhereP(...func(*sql.Selector)) }) })
ent/schema/common.go:55
↓ 1 callers
Function
splitByBytes
splitByBytes splits text into chunks at word boundaries, each at most maxBytes bytes.
pkg/searcher/indexer/chunker.go:72
↓ 1 callers
Method
sqlAll
(ctx context.Context, hooks ...queryHook)
ent/node_query.go:369
↓ 1 callers
Method
sqlAll
(ctx context.Context, hooks ...queryHook)
ent/entity_query.go:441
↓ 1 callers
Method
sqlAll
(ctx context.Context, hooks ...queryHook)
ent/file_query.go:619
↓ 1 callers
Method
sqlCount
(ctx context.Context)
ent/node_query.go:436
↓ 1 callers
Method
sqlScan
(ctx context.Context, root *NodeQuery, v any)
ent/node_query.go:586
↓ 1 callers
Method
start
start to start all worker
pkg/queue/queue.go:381
↓ 1 callers
Function
sumRangesSize
(ranges []httpRange)
pkg/filemanager/manager/entitysource/entitysource.go:1056
↓ 1 callers
Function
taskWrapper
(name, config string, user *ent.User, dep dependency.Dep, task CronTaskFunc)
pkg/crontab/crontab.go:59
↓ 1 callers
Method
tempPath
(ctx context.Context)
pkg/downloader/aria2/aria2.go:277
↓ 1 callers
Function
testFFProbeGenerator
(ctx context.Context, executable string)
pkg/thumb/tester.go:35
↓ 1 callers
Function
testFfmpegGenerator
(ctx context.Context, executable string)
pkg/thumb/tester.go:65
↓ 1 callers
Function
testLibRawGenerator
(ctx context.Context, executable string)
pkg/thumb/tester.go:95
↓ 1 callers
Function
testLibreOfficeGenerator
(ctx context.Context, executable string)
pkg/thumb/tester.go:80
↓ 1 callers
Function
testVipsGenerator
(ctx context.Context, executable string)
pkg/thumb/tester.go:50
↓ 1 callers
Function
toASCIISafeFilename
toASCIISafeFilename converts a filename to ASCII-safe version by replacing non-ASCII characters and special characters with underscores. This is used
pkg/filemanager/manager/entitysource/entitysource.go:187
↓ 1 callers
Function
trimSlash
trimSlash trims a trailing slash from name, if present, returning the possibly shortened name.
application/statics/embed.go:204
↓ 1 callers
Method
unhold
(n *memLSNode)
pkg/filemanager/lock/memlock.go:357
↓ 1 callers
Function
unicode
(s string)
pkg/mediameta/exif.go:624
↓ 1 callers
Method
unmarshalAttr
unmarshalAttr unmarshals a single XML attribute into val.
pkg/webdav/internal/xml/read.go:228
↓ 1 callers
Function
unmarshalError
(resp string, err error)
pkg/filemanager/driver/upyun/media.go:77
↓ 1 callers
Function
unmarshalError
(resp string, originErr error)
pkg/filemanager/driver/qiniu/media.go:120
↓ 1 callers
Method
unmarshalPath
unmarshalPath walks down an XML structure looking for wanted paths, and calls unmarshal on them. The consumed result tells whether XML elements have b
pkg/webdav/internal/xml/read.go:612
↓ 1 callers
Function
updateAvatarFile
(ctx context.Context, u *ent.User, contentType string, file io.Reader, avatarSettings *setting.AvatarProcess)
service/user/setting.go:181
↓ 1 callers
Method
updateStateless
similar to Update, but expected to be executed on slave node.
pkg/filemanager/manager/upload.go:400
↓ 1 callers
Method
uploadArchive
(ctx context.Context, dep dependency.Dep)
pkg/filemanager/workflows/archive.go:425
↓ 1 callers
Function
uploadCallbackCheck
uploadCallbackCheck 对上传回调请求的 callback key 进行验证,如果成功则返回上传用户
middleware/auth.go:193
↓ 1 callers
Method
uploadChunk
(ctx context.Context, sessionID string, index int, chunk io.Reader, overwrite bool, size int64)
pkg/filemanager/driver/remote/client.go:272
↓ 1 callers
Function
utf7dec
utf7dec extracts UTF-16-BE bytes from Base64 data and converts them to UTF-8. A nil slice is returned if the encoding is invalid.
pkg/wopi/utf7.go:460
↓ 1 callers
Function
utf7enc
utf7enc converts string s from UTF-8 to UTF-16-BE, encodes the result as Base64, removes the padding, and adds UTF-7 shifts.
pkg/wopi/utf7.go:406
↓ 1 callers
Method
validateFiles
(ctx context.Context, dep dependency.Dep, status *downloader.TaskStatus)
pkg/filemanager/workflows/remote_download.go:563
↓ 1 callers
Function
validateMagnet
(ctx context.Context, u *url.URL, opt SSRFOptions)
pkg/request/ssrf.go:108
↓ 1 callers
Method
walkNext
(ctx context.Context, root *File, next string, isLeaf bool)
pkg/filemanager/fs/dbfs/navigator.go:177
↓ 1 callers
Method
walkNext
(ctx context.Context, root *File, next string, isLeaf bool)
pkg/filemanager/fs/dbfs/my_navigator.go:132
↓ 1 callers
Method
walkNext
(ctx context.Context, root *File, next string, isLeaf bool)
pkg/filemanager/fs/dbfs/share_navigator.go:220
↓ 1 callers
Method
walkUp
(ctx context.Context, child *File)
pkg/filemanager/fs/dbfs/navigator.go:224
↓ 1 callers
Function
withDavAccount
withDavAccount sets the old DavAccount of the mutation.
ent/mutation.go:128
↓ 1 callers
Function
withDavAccountID
withDavAccountID sets the ID field of the mutation.
ent/mutation.go:106
↓ 1 callers
Function
withDirectLink
withDirectLink sets the old DirectLink of the mutation.
ent/mutation.go:984
↓ 1 callers
Function
withDirectLinkID
withDirectLinkID sets the ID field of the mutation.
ent/mutation.go:962
↓ 1 callers
Function
withEntity
withEntity sets the old Entity of the mutation.
ent/mutation.go:1788
↓ 1 callers
Function
withEntityID
withEntityID sets the ID field of the mutation.
ent/mutation.go:1766
↓ 1 callers
Function
withFile
withFile sets the old File of the mutation.
ent/mutation.go:3059
↓ 1 callers
Function
withFileID
withFileID sets the ID field of the mutation.
ent/mutation.go:3037
↓ 1 callers
Function
withFsEvent
withFsEvent sets the old FsEvent of the mutation.
ent/mutation.go:4671
↓ 1 callers
Function
withFsEventID
withFsEventID sets the ID field of the mutation.
ent/mutation.go:4649
↓ 1 callers
Function
withGroup
withGroup sets the old Group of the mutation.
ent/mutation.go:5386
↓ 1 callers
Function
withGroupID
withGroupID sets the ID field of the mutation.
ent/mutation.go:5364
↓ 1 callers
Function
withMetadata
withMetadata sets the old Metadata of the mutation.
ent/mutation.go:6458
↓ 1 callers
Function
withMetadataID
withMetadataID sets the ID field of the mutation.
ent/mutation.go:6436
↓ 1 callers
Function
withNode
withNode sets the old Node of the mutation.
ent/mutation.go:7194
↓ 1 callers
Function
withNodeID
withNodeID sets the ID field of the mutation.
ent/mutation.go:7172
↓ 1 callers
Function
withOAuthClient
withOAuthClient sets the old OAuthClient of the mutation.
ent/mutation.go:8269
↓ 1 callers
Function
withOAuthClientID
withOAuthClientID sets the ID field of the mutation.
ent/mutation.go:8247
↓ 1 callers
Function
withOAuthGrant
withOAuthGrant sets the old OAuthGrant of the mutation.
ent/mutation.go:9295
← previous
next →
4,401–4,500 of 11,486, ranked by callers