MCPcopy Create free account

hub / github.com/cloudreve/cloudreve / functions

Functions11,486 in github.com/cloudreve/cloudreve

↓ 8 callersFunctionReplace
Replace 根据替换表执行批量替换
pkg/util/common.go:112
↓ 8 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/entity_query.go:402
↓ 8 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/file_query.go:580
↓ 8 callersMethodSetOwnerID
SetOwnerID sets the "owner_id" field.
ent/mutation.go:3280
↓ 8 callersMethodSetServer
SetServer sets the "server" field.
ent/mutation.go:7480
↓ 8 callersMethodSetSize
SetSize sets the "size" field.
ent/mutation.go:3316
↓ 8 callersMethodSettingsCleared
SettingsCleared returns if the "settings" field was cleared in this mutation.
ent/mutation.go:7651
↓ 8 callersMethodSharesCleared
SharesCleared reports if the "shares" edge to the Share entity was cleared.
ent/mutation.go:3909
↓ 8 callersMethodSlave
()
pkg/conf/conf.go:23
↓ 8 callersMethodStop
()
pkg/filemanager/eventhub/subscriber.go:22
↓ 8 callersMethodStoragePolicyCleared
StoragePolicyCleared reports if the "storage_policy" edge to the StoragePolicy entity was cleared.
ent/mutation.go:7734
↓ 8 callersMethodThumbEncode
ThumbEncode returns the thumbnail encoding settings.
pkg/setting/provider.go:112
↓ 8 callersMethodUpdateOneID
UpdateOneID returns an update builder for the given id.
ent/client.go:880
↓ 8 callersMethodUserID
UserID returns the "user" edge ID in the mutation.
ent/mutation.go:14660
↓ 8 callersFunctionWithCorrelationID
WithCorrelationID set correlation ID for logging requests
pkg/request/options.go:165
↓ 8 callersFunctionWithFilePublicMetadata
WithFilePublicMetadata enables loading file public metadata.
pkg/filemanager/fs/dbfs/options.go:63
↓ 8 callersMethodgetStringList
(ctx context.Context, name string, defaultVal []string)
pkg/setting/provider.go:952
↓ 8 callersFunctionpersistTask
(ctx context.Context, task Task, newState task.Status, q *queue)
pkg/queue/task.go:476
↓ 8 callersMethodprepareQuery
(ctx context.Context)
ent/storagepolicy_query.go:451
↓ 8 callersMethodprepareQuery
(ctx context.Context)
ent/entity_query.go:415
↓ 8 callersMethodrequest
(ctx context.Context, method, path string, body string, headers *http.Header)
pkg/downloader/qbittorrent/qbittorrent.go:358
↓ 8 callersMethodrequestWithStr
(ctx context.Context, method string, url string, body string, expectedCode int)
pkg/filemanager/driver/onedrive/api.go:531
↓ 8 callersFunctionsplit
split splits the name into dir and elem as described in the comment in the FS struct above. isDir reports whether the final trailing slash was present
application/statics/embed.go:187
↓ 8 callersFunctionsqlParamLimit
sqlParamLimit returns the max number of sql parameters.
inventory/common.go:87
↓ 7 callersMethodAll
All executes the query and returns a list of StoragePolicies.
ent/storagepolicy_query.go:258
↓ 7 callersMethodAppend
Append extends a chain, adding the specified hook as the last ones in the mutation flow.
ent/hook/hook.go:368
↓ 7 callersFunctionBuildUser
BuildUser 序列化用户
service/user/response.go:163
↓ 7 callersMethodConfirmLock
ConfirmLock confirms if a lock token is valid on given URI.
pkg/filemanager/fs/fs.go:118
↓ 7 callersMethodDeleteOneID
DeleteOneID returns a builder for deleting the given entity by its id.
ent/client.go:897
↓ 7 callersMethodElements
()
pkg/filemanager/fs/uri.go:123
↓ 7 callersMethodEntityRecycleQueue
EntityRecycleQueue Get a singleton queue.Queue instance for entity recycle.
application/dependency/dependency.go:122
↓ 7 callersMethodGetEntitySource
(ctx context.Context, entityID int, opts ...fs.Option)
pkg/filemanager/manager/entity.go:315
↓ 7 callersMethodHashIDEncoder
()
application/dependency/dependency.go:839
↓ 7 callersMethodHomepageURL
HomepageURL returns the value of the "homepage_url" field in the mutation.
ent/mutation.go:8560
↓ 7 callersFunctionID
ID filters vertices based on their ID field.
ent/file/where.go:14
↓ 7 callersFunctionIDIn
IDIn applies the In predicate on the ID field.
ent/file/where.go:29
↓ 7 callersMethodIsMaster
()
pkg/cluster/node.go:35
↓ 7 callersMethodIsRootFolder
()
pkg/filemanager/fs/fs.go:170
↓ 7 callersFunctionLog
Log 返回日志对象
pkg/util/logger.go:142
↓ 7 callersFunctionMasterSiteUrlFromContext
(ctx context.Context)
pkg/cluster/node.go:407
↓ 7 callersFunctionNewEntitySource
NewEntitySource creates a new EntitySource.
pkg/filemanager/manager/entitysource/entitysource.go:200
↓ 7 callersFunctionNewGroupClient
NewGroupClient returns a client for the Group from the given config.
ent/client.go:1238
↓ 7 callersFunctionNewOAuthGrantClient
NewOAuthGrantClient returns a client for the OAuthGrant from the given config.
ent/client.go:1858
↓ 7 callersFunctionNewShareClient
NewShareClient returns a client for the Share from the given config.
ent/client.go:2311
↓ 7 callersFunctionNodeIdFromContext
(ctx context.Context)
pkg/cluster/node.go:397
↓ 7 callersMethodOnUploadFailed
(ctx context.Context, session *fs.UploadSession)
pkg/filemanager/manager/upload.go:369
↓ 7 callersMethodPublish
(evt Event)
pkg/filemanager/eventhub/subscriber.go:21
↓ 7 callersMethodQueue
Queue add a new Task into the queue
pkg/queue/scheduler.go:23
↓ 7 callersFunctionRandStringRunes
RandStringRunes 返回随机字符串
pkg/util/common.go:31
↓ 7 callersMethodSeek
Seek 实现 NopRSCloser seeker, 只实现seek开头/结尾以便http.ServeContent用于确定正文大小
pkg/request/request.go:337
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/setting_query.go:293
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/node_query.go:330
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/storagepolicy_query.go:438
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/group_query.go:366
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/fsevent_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/davaccount_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/metadata_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/oauthgrant_query.go:365
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/directlink_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/passkey_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/share_query.go:366
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/oauthclient_query.go:330
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/task_query.go:329
↓ 7 callersMethodSelect
Select allows the selection one or more fields/columns for the given query, instead of selecting all fields in the entity. Example: var v []struct
ent/user_query.go:618
↓ 7 callersMethodServe
Serve serves the entity to the client, with supports on Range header and If- cache control.
pkg/filemanager/manager/entitysource/entitysource.go:59
↓ 7 callersMethodServer
Server returns the value of the "server" field in the mutation.
ent/mutation.go:7485
↓ 7 callersMethodSetPermissions
SetPermissions sets the "permissions" field.
ent/mutation.go:5740
↓ 7 callersMethodSetSource
SetSource sets the encrypted data source and initializes the cipher stream
pkg/filemanager/encrypt/encrypt.go:21
↓ 7 callersMethodStart
Start starts the Cloudreve server.
application/application.go:30
↓ 7 callersMethodSummarize
Summarize returns the Task summary for UI display
pkg/queue/task.go:57
↓ 7 callersMethodTaskClient
TaskClient Creates a new inventory.TaskClient instance for access DB task store.
application/dependency/dependency.go:108
↓ 7 callersMethodTest
Test tests the connection to the downloader.
pkg/downloader/downloader.go:24
↓ 7 callersMethodTokenAuth
TokenAuth returns token based auth related settings.
pkg/setting/provider.go:60
↓ 7 callersMethodUpdate
Update puts file content. If given file does not exist, it will create a new one.
pkg/filemanager/manager/manager.go:51
↓ 7 callersMethodUploadSessionID
()
pkg/filemanager/fs/fs.go:184
↓ 7 callersMethodWhere
Where adds a new predicate for the StoragePolicyQuery builder.
ent/storagepolicy_query.go:39
↓ 7 callersFunctionWithContentLength
WithContentLength 设置请求大小
pkg/request/options.go:111
↓ 7 callersMethodpanicError
(err error)
application/dependency/dependency.go:988
↓ 7 callersFunctionserializer
(value any)
pkg/cache/redis.go:24
↓ 6 callersMethodAddReferenceCount
AddReferenceCount adds i to the "reference_count" field.
ent/mutation.go:2146
↓ 6 callersFunctionBlackHole
BlackHole 将客户端发来的数据放入黑洞
pkg/request/utils.go:15
↓ 6 callersFunctionBuildTaskResponse
(task queue.Task, node *ent.Node, hasher hashid.Encoder)
service/explorer/response.go:125
↓ 6 callersFunctionByID
ByID orders the results by the id field.
ent/file/file.go:161
↓ 6 callersMethodCastStoragePolicyOnSlave
(ctx context.Context, policy *ent.StoragePolicy)
pkg/filemanager/manager/fs.go:31
↓ 6 callersMethodChunkRetryLimit
ChunkRetryLimit returns the maximum number of chunk retries.
pkg/setting/provider.go:74
↓ 6 callersMethodCountByTimeRange
CountByTimeRange counts files created in a given time range
inventory/file.go:218
↓ 6 callersMethodCreateTask
CreateTask creates a task on the node. It does not have effect on master node.
pkg/cluster/node.go:37
↓ 6 callersMethodEntitiesOrErr
EntitiesOrErr returns the Entities value or an error if the edge was not loaded in eager-loading.
ent/file.go:134
↓ 6 callersFunctionEscape
Escape is like EscapeText but omits the error return value. It is provided for backwards compatibility with Go 1.0. Code targeting Go 1.1 or later sho
pkg/webdav/internal/xml/xml.go:1972
↓ 6 callersFunctionEscapeText
EscapeText writes to w the properly escaped XML equivalent of the plain text data s.
pkg/webdav/internal/xml/xml.go:1876
↓ 6 callersMethodExecuted
Executed returns the duration of the Task execution
pkg/queue/task.go:40
↓ 6 callersMethodExtract
Extract extracts the media meta from the given source.
pkg/mediameta/extractor.go:22
↓ 6 callersFunctionExtractExifMap
(exifMap map[string]string, gpsTime time.Time)
pkg/mediameta/exif.go:266
↓ 6 callersMethodFailureTasks
FailureTasks returns the numbers of failure tasks.
pkg/queue/queue.go:31
↓ 6 callersMethodFieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:4302
↓ 6 callersMethodFilesIDs
FilesIDs returns the "files" edge IDs in the mutation.
ent/mutation.go:15799
↓ 6 callersFunctionFillSlash
FillSlash 给路径补全`/`
pkg/util/path.go:23
↓ 6 callersMethodGetMasterKey
(ctx context.Context)
pkg/filemanager/encrypt/masterkey.go:19
↓ 6 callersMethodGroupClient
GroupClient Creates a new inventory.GroupClient instance for access DB group store.
application/dependency/dependency.go:78
↓ 6 callersFunctionID
ID filters vertices based on their ID field.
ent/directlink/where.go:14
← previousnext →401–500 of 11,486, ranked by callers