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
↓ 8 callers
Function
Replace
Replace 根据替换表执行批量替换
pkg/util/common.go:112
↓ 8 callers
Method
Select
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 callers
Method
Select
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 callers
Method
SetOwnerID
SetOwnerID sets the "owner_id" field.
ent/mutation.go:3280
↓ 8 callers
Method
SetServer
SetServer sets the "server" field.
ent/mutation.go:7480
↓ 8 callers
Method
SetSize
SetSize sets the "size" field.
ent/mutation.go:3316
↓ 8 callers
Method
SettingsCleared
SettingsCleared returns if the "settings" field was cleared in this mutation.
ent/mutation.go:7651
↓ 8 callers
Method
SharesCleared
SharesCleared reports if the "shares" edge to the Share entity was cleared.
ent/mutation.go:3909
↓ 8 callers
Method
Slave
()
pkg/conf/conf.go:23
↓ 8 callers
Method
Stop
()
pkg/filemanager/eventhub/subscriber.go:22
↓ 8 callers
Method
StoragePolicyCleared
StoragePolicyCleared reports if the "storage_policy" edge to the StoragePolicy entity was cleared.
ent/mutation.go:7734
↓ 8 callers
Method
ThumbEncode
ThumbEncode returns the thumbnail encoding settings.
pkg/setting/provider.go:112
↓ 8 callers
Method
UpdateOneID
UpdateOneID returns an update builder for the given id.
ent/client.go:880
↓ 8 callers
Method
UserID
UserID returns the "user" edge ID in the mutation.
ent/mutation.go:14660
↓ 8 callers
Function
WithCorrelationID
WithCorrelationID set correlation ID for logging requests
pkg/request/options.go:165
↓ 8 callers
Function
WithFilePublicMetadata
WithFilePublicMetadata enables loading file public metadata.
pkg/filemanager/fs/dbfs/options.go:63
↓ 8 callers
Method
getStringList
(ctx context.Context, name string, defaultVal []string)
pkg/setting/provider.go:952
↓ 8 callers
Function
persistTask
(ctx context.Context, task Task, newState task.Status, q *queue)
pkg/queue/task.go:476
↓ 8 callers
Method
prepareQuery
(ctx context.Context)
ent/storagepolicy_query.go:451
↓ 8 callers
Method
prepareQuery
(ctx context.Context)
ent/entity_query.go:415
↓ 8 callers
Method
request
(ctx context.Context, method, path string, body string, headers *http.Header)
pkg/downloader/qbittorrent/qbittorrent.go:358
↓ 8 callers
Method
requestWithStr
(ctx context.Context, method string, url string, body string, expectedCode int)
pkg/filemanager/driver/onedrive/api.go:531
↓ 8 callers
Function
split
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 callers
Function
sqlParamLimit
sqlParamLimit returns the max number of sql parameters.
inventory/common.go:87
↓ 7 callers
Method
All
All executes the query and returns a list of StoragePolicies.
ent/storagepolicy_query.go:258
↓ 7 callers
Method
Append
Append extends a chain, adding the specified hook as the last ones in the mutation flow.
ent/hook/hook.go:368
↓ 7 callers
Function
BuildUser
BuildUser 序列化用户
service/user/response.go:163
↓ 7 callers
Method
ConfirmLock
ConfirmLock confirms if a lock token is valid on given URI.
pkg/filemanager/fs/fs.go:118
↓ 7 callers
Method
DeleteOneID
DeleteOneID returns a builder for deleting the given entity by its id.
ent/client.go:897
↓ 7 callers
Method
Elements
()
pkg/filemanager/fs/uri.go:123
↓ 7 callers
Method
EntityRecycleQueue
EntityRecycleQueue Get a singleton queue.Queue instance for entity recycle.
application/dependency/dependency.go:122
↓ 7 callers
Method
GetEntitySource
(ctx context.Context, entityID int, opts ...fs.Option)
pkg/filemanager/manager/entity.go:315
↓ 7 callers
Method
HashIDEncoder
()
application/dependency/dependency.go:839
↓ 7 callers
Method
HomepageURL
HomepageURL returns the value of the "homepage_url" field in the mutation.
ent/mutation.go:8560
↓ 7 callers
Function
ID
ID filters vertices based on their ID field.
ent/file/where.go:14
↓ 7 callers
Function
IDIn
IDIn applies the In predicate on the ID field.
ent/file/where.go:29
↓ 7 callers
Method
IsMaster
()
pkg/cluster/node.go:35
↓ 7 callers
Method
IsRootFolder
()
pkg/filemanager/fs/fs.go:170
↓ 7 callers
Function
Log
Log 返回日志对象
pkg/util/logger.go:142
↓ 7 callers
Function
MasterSiteUrlFromContext
(ctx context.Context)
pkg/cluster/node.go:407
↓ 7 callers
Function
NewEntitySource
NewEntitySource creates a new EntitySource.
pkg/filemanager/manager/entitysource/entitysource.go:200
↓ 7 callers
Function
NewGroupClient
NewGroupClient returns a client for the Group from the given config.
ent/client.go:1238
↓ 7 callers
Function
NewOAuthGrantClient
NewOAuthGrantClient returns a client for the OAuthGrant from the given config.
ent/client.go:1858
↓ 7 callers
Function
NewShareClient
NewShareClient returns a client for the Share from the given config.
ent/client.go:2311
↓ 7 callers
Function
NodeIdFromContext
(ctx context.Context)
pkg/cluster/node.go:397
↓ 7 callers
Method
OnUploadFailed
(ctx context.Context, session *fs.UploadSession)
pkg/filemanager/manager/upload.go:369
↓ 7 callers
Method
Publish
(evt Event)
pkg/filemanager/eventhub/subscriber.go:21
↓ 7 callers
Method
Queue
Queue add a new Task into the queue
pkg/queue/scheduler.go:23
↓ 7 callers
Function
RandStringRunes
RandStringRunes 返回随机字符串
pkg/util/common.go:31
↓ 7 callers
Method
Seek
Seek 实现 NopRSCloser seeker, 只实现seek开头/结尾以便http.ServeContent用于确定正文大小
pkg/request/request.go:337
↓ 7 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Select
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 callers
Method
Serve
Serve serves the entity to the client, with supports on Range header and If- cache control.
pkg/filemanager/manager/entitysource/entitysource.go:59
↓ 7 callers
Method
Server
Server returns the value of the "server" field in the mutation.
ent/mutation.go:7485
↓ 7 callers
Method
SetPermissions
SetPermissions sets the "permissions" field.
ent/mutation.go:5740
↓ 7 callers
Method
SetSource
SetSource sets the encrypted data source and initializes the cipher stream
pkg/filemanager/encrypt/encrypt.go:21
↓ 7 callers
Method
Start
Start starts the Cloudreve server.
application/application.go:30
↓ 7 callers
Method
Summarize
Summarize returns the Task summary for UI display
pkg/queue/task.go:57
↓ 7 callers
Method
TaskClient
TaskClient Creates a new inventory.TaskClient instance for access DB task store.
application/dependency/dependency.go:108
↓ 7 callers
Method
Test
Test tests the connection to the downloader.
pkg/downloader/downloader.go:24
↓ 7 callers
Method
TokenAuth
TokenAuth returns token based auth related settings.
pkg/setting/provider.go:60
↓ 7 callers
Method
Update
Update puts file content. If given file does not exist, it will create a new one.
pkg/filemanager/manager/manager.go:51
↓ 7 callers
Method
UploadSessionID
()
pkg/filemanager/fs/fs.go:184
↓ 7 callers
Method
Where
Where adds a new predicate for the StoragePolicyQuery builder.
ent/storagepolicy_query.go:39
↓ 7 callers
Function
WithContentLength
WithContentLength 设置请求大小
pkg/request/options.go:111
↓ 7 callers
Method
panicError
(err error)
application/dependency/dependency.go:988
↓ 7 callers
Function
serializer
(value any)
pkg/cache/redis.go:24
↓ 6 callers
Method
AddReferenceCount
AddReferenceCount adds i to the "reference_count" field.
ent/mutation.go:2146
↓ 6 callers
Function
BlackHole
BlackHole 将客户端发来的数据放入黑洞
pkg/request/utils.go:15
↓ 6 callers
Function
BuildTaskResponse
(task queue.Task, node *ent.Node, hasher hashid.Encoder)
service/explorer/response.go:125
↓ 6 callers
Function
ByID
ByID orders the results by the id field.
ent/file/file.go:161
↓ 6 callers
Method
CastStoragePolicyOnSlave
(ctx context.Context, policy *ent.StoragePolicy)
pkg/filemanager/manager/fs.go:31
↓ 6 callers
Method
ChunkRetryLimit
ChunkRetryLimit returns the maximum number of chunk retries.
pkg/setting/provider.go:74
↓ 6 callers
Method
CountByTimeRange
CountByTimeRange counts files created in a given time range
inventory/file.go:218
↓ 6 callers
Method
CreateTask
CreateTask creates a task on the node. It does not have effect on master node.
pkg/cluster/node.go:37
↓ 6 callers
Method
EntitiesOrErr
EntitiesOrErr returns the Entities value or an error if the edge was not loaded in eager-loading.
ent/file.go:134
↓ 6 callers
Function
Escape
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 callers
Function
EscapeText
EscapeText writes to w the properly escaped XML equivalent of the plain text data s.
pkg/webdav/internal/xml/xml.go:1876
↓ 6 callers
Method
Executed
Executed returns the duration of the Task execution
pkg/queue/task.go:40
↓ 6 callers
Method
Extract
Extract extracts the media meta from the given source.
pkg/mediameta/extractor.go:22
↓ 6 callers
Function
ExtractExifMap
(exifMap map[string]string, gpsTime time.Time)
pkg/mediameta/exif.go:266
↓ 6 callers
Method
FailureTasks
FailureTasks returns the numbers of failure tasks.
pkg/queue/queue.go:31
↓ 6 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:4302
↓ 6 callers
Method
FilesIDs
FilesIDs returns the "files" edge IDs in the mutation.
ent/mutation.go:15799
↓ 6 callers
Function
FillSlash
FillSlash 给路径补全`/`
pkg/util/path.go:23
↓ 6 callers
Method
GetMasterKey
(ctx context.Context)
pkg/filemanager/encrypt/masterkey.go:19
↓ 6 callers
Method
GroupClient
GroupClient Creates a new inventory.GroupClient instance for access DB group store.
application/dependency/dependency.go:78
↓ 6 callers
Function
ID
ID filters vertices based on their ID field.
ent/directlink/where.go:14
← previous
next →
401–500 of 11,486, ranked by callers