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
↓ 6 callers
Function
IDGT
IDGT applies the GT predicate on the ID field.
ent/file/where.go:39
↓ 6 callers
Function
Init
Init 初始化配置文件
application/migrator/conf/conf.go:75
↓ 6 callers
Method
IoIntenseQueue
IoIntenseQueue Get a singleton queue.Queue instance for IO intense tasks.
application/dependency/dependency.go:128
↓ 6 callers
Function
IsConstraintError
IsConstraintError returns a boolean indicating whether the error is a constraint failure.
ent/ent.go:310
↓ 6 callers
Method
IsEnabled
IsEnabled returns the value of the "is_enabled" field in the mutation.
ent/mutation.go:8747
↓ 6 callers
Function
IsFunctionEnabled
IsFunctionEnabled 当功能未开启时阻止访问
middleware/common.go:45
↓ 6 callers
Method
IsPublic
IsPublic returns the value of the "is_public" field in the mutation.
ent/mutation.go:6749
↓ 6 callers
Method
IsSame
(p *URI, uid string)
pkg/filemanager/fs/uri.go:198
↓ 6 callers
Method
Key
()
pkg/credmanager/credmanager.go:35
↓ 6 callers
Method
Limit
(ctx context.Context, token string, tps float64, burst int)
pkg/request/tpslimiter.go:12
↓ 6 callers
Function
New
(l logging.Logger, taskClient inventory.TaskClient, registry TaskRegistry, dep Dep, opts ...Option)
pkg/queue/queue.go:68
↓ 6 callers
Function
NewDavAccountClient
NewDavAccountClient returns a client for the DavAccount from the given config.
ent/client.go:340
↓ 6 callers
Function
NewDirectLinkClient
NewDirectLinkClient returns a client for the DirectLink from the given config.
ent/client.go:491
↓ 6 callers
Function
NewFsEventClient
NewFsEventClient returns a client for the FsEvent from the given config.
ent/client.go:1087
↓ 6 callers
Function
NewLocalFileEntity
NewLocalFileEntity creates a new local file entity.
pkg/filemanager/driver/local/entity.go:15
↓ 6 callers
Function
NewMetadataClient
NewMetadataClient returns a client for the Metadata from the given config.
ent/client.go:1405
↓ 6 callers
Function
NewNodeClient
NewNodeClient returns a client for the Node from the given config.
ent/client.go:1556
↓ 6 callers
Function
NewOAuthClientClient
NewOAuthClientClient returns a client for the OAuthClient from the given config.
ent/client.go:1707
↓ 6 callers
Function
NewPasskeyClient
NewPasskeyClient returns a client for the Passkey from the given config.
ent/client.go:2025
↓ 6 callers
Function
NewTaskClient
NewTaskClient returns a client for the Task from the given config.
ent/client.go:2677
↓ 6 callers
Function
NormalizeGPS
NormalizeGPS normalizes the longitude and latitude of the GPS position to a generally valid range.
pkg/mediameta/exif.go:540
↓ 6 callers
Method
Options
Options returns the value of the "options" field in the mutation.
ent/mutation.go:419
↓ 6 callers
Method
OwnerIDs
OwnerIDs returns the "owner" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you should use OwnerID instead
ent/mutation.go:3638
↓ 6 callers
Method
Panic
(format string, v ...any)
pkg/logging/logger.go:15
↓ 6 callers
Method
PathTrimmed
()
pkg/filemanager/fs/uri.go:152
↓ 6 callers
Method
ReadFile
ReadFile reads and returns the content of the named file.
application/statics/embed.go:331
↓ 6 callers
Method
RedirectUris
RedirectUris returns the value of the "redirect_uris" field in the mutation.
ent/mutation.go:8610
↓ 6 callers
Method
ReferenceCount
()
pkg/filemanager/fs/fs.go:182
↓ 6 callers
Method
RemoveMetadata
RemoveMetadata removes metadata from a file
inventory/file.go:183
↓ 6 callers
Method
RemovedEntitiesIDs
RemovedEntities returns the removed IDs of the "entities" edge to the Entity entity.
ent/mutation.go:3871
↓ 6 callers
Method
Replace
(model *ent.File)
pkg/filemanager/fs/dbfs/file.go:251
↓ 6 callers
Method
Retried
Retried returns the number of times the Task has been retried
pkg/queue/task.go:42
↓ 6 callers
Method
SSL
()
pkg/conf/conf.go:21
↓ 6 callers
Method
SetAvatar
SetAvatar sets the "avatar" field.
ent/mutation.go:15586
↓ 6 callers
Method
SetCapabilities
SetCapabilities sets the "capabilities" field.
ent/mutation.go:7578
↓ 6 callers
Method
SetIsPublic
SetIsPublic sets the "is_public" field.
ent/mutation.go:6744
↓ 6 callers
Method
SetMaxStorage
SetMaxStorage sets the "max_storage" field.
ent/mutation.go:5600
↓ 6 callers
Method
SetNick
SetNick sets the "nick" field.
ent/mutation.go:15360
↓ 6 callers
Method
SetScopes
SetScopes sets the "scopes" field.
ent/mutation.go:9545
↓ 6 callers
Method
SetStoragePoliciesID
SetStoragePoliciesID sets the "storage_policies" edge to the StoragePolicy entity by id.
ent/mutation.go:3652
↓ 6 callers
Method
SharesIDs
SharesIDs returns the "shares" edge IDs in the mutation.
ent/mutation.go:3933
↓ 6 callers
Function
SignRequired
SignRequired 验证请求签名
middleware/auth.go:27
↓ 6 callers
Function
SignURI
SignURI 对URI进行签名
pkg/auth/auth.go:125
↓ 6 callers
Method
Start
Start resume tasks and starts all workers.
pkg/queue/queue.go:21
↓ 6 callers
Method
Storage
Storage returns the value of the "storage" field in the mutation.
ent/mutation.go:15487
↓ 6 callers
Method
StoragePoliciesIDs
StoragePoliciesIDs returns the "storage_policies" edge IDs in the mutation. Note that IDs always returns len(IDs) <= 1 for unique edges, and you shoul
ent/mutation.go:3678
↓ 6 callers
Method
StoragePolicyIDs
StoragePolicyIDs returns the "storage_policy" edge IDs in the mutation.
ent/mutation.go:7758
↓ 6 callers
Method
SubmittedTasks
SubmittedTasks returns the numbers of submitted tasks.
pkg/queue/queue.go:33
↓ 6 callers
Method
SuccessTasks
BusyWorkers returns the numbers of success tasks.
pkg/queue/queue.go:29
↓ 6 callers
Method
SuspendingTasks
SuspendingTasks returns the numbers of suspending tasks.
pkg/queue/queue.go:35
↓ 6 callers
Method
UseChunkBuffer
UseChunkBuffer returns true if chunk buffer is enabled.
pkg/setting/provider.go:76
↓ 6 callers
Function
ValidateBatchFileCount
ValidateBatchFileCount validates if the batch file count is within the limit
middleware/file.go:20
↓ 6 callers
Method
Views
Views returns the value of the "views" field in the mutation.
ent/mutation.go:11729
↓ 6 callers
Method
Weight
Weight returns the value of the "weight" field in the mutation.
ent/mutation.go:7669
↓ 6 callers
Function
WithBackoffFactor
WithBackoffFactor set backoff factor
pkg/queue/options.go:60
↓ 6 callers
Function
WithBackoffMaxDuration
WithBackoffMaxDuration set backoff max duration
pkg/queue/options.go:67
↓ 6 callers
Function
WithEndpoint
Endpoint 使用同一的请求Endpoint
pkg/request/options.go:134
↓ 6 callers
Function
WithMaxRetry
WithMaxRetry set max retry
pkg/queue/options.go:74
↓ 6 callers
Function
WithMaxTaskExecution
WithMaxTaskExecution set maximum execution time for a Task.
pkg/queue/options.go:46
↓ 6 callers
Function
WithName
WithName set queue name
pkg/queue/options.go:98
↓ 6 callers
Function
WithRetryDelay
WithRetryDelay set retry delay
pkg/queue/options.go:53
↓ 6 callers
Function
WithSpeedLimit
WithSpeedLimit set speed limit for file source (if supported)
pkg/filemanager/manager/entitysource/entitysource.go:98
↓ 6 callers
Function
WithWorkerCount
WithWorkerCount set worker count
pkg/queue/options.go:88
↓ 6 callers
Method
batchInConditionEntityID
(pageSize, margin int, multiply int, keys []int)
inventory/file_utils.go:175
↓ 6 callers
Function
checkColumn
columnChecker checks if the column exists in the given table.
ent/ent.go:88
↓ 6 callers
Function
confirmLock
(c *gin.Context, fm manager.FileManager, user *ent.User, srcAnc, dstAnc fs.File, src, dst *fs.URI)
pkg/webdav/webdav.go:97
↓ 6 callers
Method
getEligibleSubscriber
(ctx context.Context, file *File, checkParentPerm bool)
pkg/filemanager/fs/dbfs/events.go:104
↓ 6 callers
Method
getPreferredPolicy
getPreferredPolicy tries to get the preferred storage policy for the given file.
pkg/filemanager/fs/dbfs/dbfs.go:669
↓ 6 callers
Function
lex
(s string)
pkg/webdav/if.go:133
↓ 6 callers
Function
newBaseNavigator
(fileClient inventory.FileClient, filterFunc fileFilter, user *ent.User, hasher hashid.Encoder, config *setti
pkg/filemanager/fs/dbfs/navigator.go:166
↓ 6 callers
Function
newDefaultOption
()
pkg/request/options.go:45
↓ 6 callers
Function
prepareFs
(c *gin.Context)
service/explorer/viewer.go:31
↓ 6 callers
Method
prepareQuery
(ctx context.Context)
ent/group_query.go:379
↓ 6 callers
Method
prepareQuery
(ctx context.Context)
ent/oauthgrant_query.go:378
↓ 6 callers
Method
prepareQuery
(ctx context.Context)
ent/share_query.go:379
↓ 6 callers
Method
sqlQuery
(ctx context.Context)
ent/storagepolicy_query.go:708
↓ 6 callers
Function
withGroupEagerLoading
(ctx context.Context, q *ent.GroupQuery)
inventory/group.go:170
↓ 5 callers
Method
AddedDownloads
AddedDownloads returns the value that was added to the "downloads" field in this mutation.
ent/mutation.go:11820
↓ 5 callers
Method
AddedSize
AddedSize returns the value that was added to the "size" field in this mutation.
ent/mutation.go:3357
↓ 5 callers
Method
AddedType
AddedType returns the value that was added to the "type" field in this mutation.
ent/mutation.go:3229
↓ 5 callers
Method
All
All executes the query and returns a list of Groups.
ent/group_query.go:210
↓ 5 callers
Method
All
All executes the query and returns a list of OAuthGrants.
ent/oauthgrant_query.go:209
↓ 5 callers
Method
All
All executes the query and returns a list of Shares.
ent/share_query.go:210
↓ 5 callers
Method
All
All executes the query and returns a list of Entities.
ent/entity_query.go:234
↓ 5 callers
Function
BuildLogger
Print GORM 的 Logger实现 func (ll *Logger) Print(v ...interface{}) { if LevelDebug > ll.level { return } msg := fmt.Sprintf("[SQL] %s", v...) ll.pr
pkg/util/logger.go:123
↓ 5 callers
Function
ByID
ByID orders the results by the id field.
ent/user/user.go:212
↓ 5 callers
Method
CORS
CORS 创建跨域策略
pkg/filemanager/driver/s3/s3.go:442
↓ 5 callers
Method
ClientID
ClientID returns the value of the "client_id" field in the mutation.
ent/mutation.go:9514
↓ 5 callers
Method
CorrelationID
CorrelationID returns the correlation ID of the Task
pkg/queue/task.go:50
↓ 5 callers
Method
CreateBulk
CreateBulk returns a builder for creating a bulk of File entities.
ent/client.go:848
↓ 5 callers
Method
Credential
Credential returns the value of the "credential" field in the mutation.
ent/mutation.go:10395
↓ 5 callers
Method
CredentialID
CredentialID returns the value of the "credential_id" field in the mutation.
ent/mutation.go:10323
↓ 5 callers
Method
DBFS
DBFS returns the DBFS related settings.
pkg/setting/provider.go:64
↓ 5 callers
Method
Delete
Delete deletes a user.
inventory/user.go:95
↓ 5 callers
Method
EntityUrlValidDuration
EntityUrlValidDuration returns the valid duration of entity URL.
pkg/setting/provider.go:83
↓ 5 callers
Function
ErrorResponse
ErrorResponse 返回错误消息
routers/controllers/main.go:43
↓ 5 callers
Method
Event
Event returns the value of the "event" field in the mutation.
ent/mutation.go:4854
↓ 5 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:6231
↓ 5 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:12356
↓ 5 callers
Method
FieldCleared
FieldCleared returns a boolean indicating if a field with the given name was cleared in this mutation.
ent/mutation.go:16485
← previous
next →
501–600 of 11,486, ranked by callers