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
↓ 3 callers
Method
PutContent
(c *gin.Context, isPutRelative bool)
service/explorer/viewer.go:158
↓ 3 callers
Method
QueryMetadata
QueryMetadata load metadata of a given file
inventory/file.go:203
↓ 3 callers
Method
RecycleEntities
RecycleEntities recycles a group of entities
pkg/filemanager/manager/entity.go:43
↓ 3 callers
Function
Register
Register registers a cron task.
pkg/crontab/crontab.go:29
↓ 3 callers
Function
ReplaceMagicVar
ReplaceMagicVar 动态替换字符串中的魔法变量
pkg/util/common.go:120
↓ 3 callers
Function
Request
Request helper fund to log request.
pkg/logging/logger.go:174
↓ 3 callers
Function
RequestInfoFromContext
RequestInfoFromContext retrieves RequestInfo from context
pkg/auth/requestinfo/requestinfo.go:11
↓ 3 callers
Method
ResetMaxSize
ResetMaxSize resets all changes to the "max_size" field.
ent/mutation.go:13149
↓ 3 callers
Method
ResetMaxStorage
ResetMaxStorage resets all changes to the "max_storage" field.
ent/mutation.go:5663
↓ 3 callers
Method
ResetPrimaryEntity
ResetPrimaryEntity resets all changes to the "primary_entity" field.
ent/mutation.go:3435
↓ 3 callers
Method
ResetReferenceCount
ResetReferenceCount resets all changes to the "reference_count" field.
ent/mutation.go:2164
↓ 3 callers
Method
ResetRemainDownloads
ResetRemainDownloads resets all changes to the "remain_downloads" field.
ent/mutation.go:11947
↓ 3 callers
Method
ResetSpeed
ResetSpeed resets all changes to the "speed" field.
ent/mutation.go:1340
↓ 3 callers
Method
ResetSpeedLimit
ResetSpeedLimit resets all changes to the "speed_limit" field.
ent/mutation.go:5733
↓ 3 callers
Method
ResetStorage
ResetStorage resets all changes to the "storage" field.
ent/mutation.go:15531
↓ 3 callers
Method
ResetViews
ResetViews resets all changes to the "views" field.
ent/mutation.go:11773
↓ 3 callers
Method
ResetWeight
ResetWeight resets all changes to the "weight" field.
ent/mutation.go:7713
↓ 3 callers
Method
RootUri
RootUri return the URI of the user root file under owner's view.
pkg/filemanager/fs/fs.go:159
↓ 3 callers
Method
Save
Save creates the File in the database.
ent/file_create.go:278
↓ 3 callers
Method
Save
Save creates the Entity in the database.
ent/entity_create.go:195
↓ 3 callers
Method
Save
Save creates the Node in the database.
ent/node_create.go:163
↓ 3 callers
Method
Save
Save creates the FsEvent in the database.
ent/fsevent_create.go:120
↓ 3 callers
Method
Save
Save creates the OAuthGrant in the database.
ent/oauthgrant_create.go:117
↓ 3 callers
Method
Save
Save creates the Passkey in the database.
ent/passkey_create.go:118
↓ 3 callers
Method
Save
Save creates the User in the database.
ent/user_create.go:308
↓ 3 callers
Method
Save
Save creates the Share in the database.
ent/share_create.go:190
↓ 3 callers
Method
Save
Save creates the DavAccount in the database.
ent/davaccount_create.go:117
↓ 3 callers
Method
Save
Save creates the Task in the database.
ent/task_create.go:163
↓ 3 callers
Method
Save
Save creates the Setting in the database.
ent/setting_create.go:93
↓ 3 callers
Method
Save
Save creates the Metadata in the database.
ent/metadata_create.go:111
↓ 3 callers
Method
Save
Save creates the Group in the database.
ent/group_create.go:171
↓ 3 callers
Method
Save
Save creates the OAuthClient in the database.
ent/oauthclient_create.go:154
↓ 3 callers
Method
Save
Save creates the DirectLink in the database.
ent/directlink_create.go:103
↓ 3 callers
Method
Save
Save creates the StoragePolicy in the database.
ent/storagepolicy_create.go:272
↓ 3 callers
Method
Search
(ctx context.Context, ownerID int, query string, offset int)
pkg/searcher/indexer.go:37
↓ 3 callers
Method
Send
Send 发送邮件
pkg/email/mail.go:13
↓ 3 callers
Method
SetClientID
SetClientID sets the "client_id" field.
ent/oauthgrant_update.go:75
↓ 3 callers
Method
SetEvent
SetEvent sets the "event" field.
ent/mutation.go:4849
↓ 3 callers
Method
SetFileID
SetFileID sets the "file" edge to the File entity by ID.
ent/share_update.go:201
↓ 3 callers
Method
SetFileID
SetFileID sets the "file_id" field.
ent/metadata_update.go:87
↓ 3 callers
Method
SetFileID
SetFileID sets the "file_id" field.
ent/directlink_update.go:94
↓ 3 callers
Method
SetHomepageURL
SetHomepageURL sets the "homepage_url" field.
ent/mutation.go:8555
↓ 3 callers
Method
SetLastUsedAt
SetLastUsedAt sets the "last_used_at" field.
ent/mutation.go:9596
↓ 3 callers
Method
SetNillableExpires
SetNillableExpires sets the "expires" field if the given value is not nil.
ent/share_update.go:129
↓ 3 callers
Method
SetNodeID
SetNodeID sets the "node_id" field.
ent/storagepolicy_update.go:270
↓ 3 callers
Method
SetOwnerID
SetOwnerID sets the "owner_id" field.
ent/file_update.go:88
↓ 3 callers
Method
SetOwnerID
SetOwnerID sets the "owner_id" field.
ent/davaccount_update.go:121
↓ 3 callers
Method
SetParentID
SetParentID sets the "parent" edge to the File entity by ID.
ent/file_update.go:240
↓ 3 callers
Method
SetPrivateState
SetPrivateState sets the "private_state" field.
ent/mutation.go:14497
↓ 3 callers
Method
SetPublicState
SetPublicState sets the "public_state" field.
ent/mutation.go:14461
↓ 3 callers
Method
SetSpeed
SetSpeed sets the "speed" field.
ent/mutation.go:1290
↓ 3 callers
Method
SetStorage
SetStorage sets the "storage" field.
ent/mutation.go:15481
↓ 3 callers
Method
SetStoragePoliciesID
SetStoragePoliciesID sets the "storage_policies" edge to the StoragePolicy entity by ID.
ent/group_update.go:183
↓ 3 callers
Method
SetStoragePoliciesID
SetStoragePoliciesID sets the "storage_policies" edge to the StoragePolicy entity by ID.
ent/file_update.go:221
↓ 3 callers
Method
SetTwoFactorSecret
SetTwoFactorSecret sets the "two_factor_secret" field.
ent/mutation.go:15537
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/group_update.go:36
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/davaccount_update.go:35
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/fsevent_update.go:34
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/share_update.go:35
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/setting_update.go:32
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/metadata_update.go:33
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/storagepolicy_update.go:37
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/task_update.go:34
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/entity_update.go:37
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/passkey_update.go:34
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/oauthgrant_update.go:35
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/oauthclient_update.go:35
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/node_update.go:35
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/directlink_update.go:33
↓ 3 callers
Method
SetUpdatedAt
SetUpdatedAt sets the "updated_at" field.
ent/user_update.go:42
↓ 3 callers
Method
SetUser
SetUser manually set the edge as loaded state.
ent/task.go:237
↓ 3 callers
Function
SetUserCtxByUser
(c *gin.Context, user *ent.User)
middleware/auth.go:86
↓ 3 callers
Method
SetUserID
SetUserID sets the "user" edge to the User entity by ID.
ent/fsevent_update.go:108
↓ 3 callers
Method
SetUserID
SetUserID sets the "user" edge to the User entity by ID.
ent/share_update.go:182
↓ 3 callers
Method
SetUserID
SetUserID sets the "user" edge to the User entity by ID.
ent/task_update.go:134
↓ 3 callers
Method
SetUserID
SetUserID sets the "user" edge to the User entity by ID.
ent/entity_update.go:221
↓ 3 callers
Method
SetUserID
SetUserID sets the "user_id" field.
ent/passkey_update.go:60
↓ 3 callers
Method
SetUserID
SetUserID sets the "user_id" field.
ent/oauthgrant_update.go:61
↓ 3 callers
Method
SettingClient
SettingClient Get a singleton inventory.SettingClient instance for access DB setting store.
application/dependency/dependency.go:72
↓ 3 callers
Method
SizeUsed
()
pkg/filemanager/fs/dbfs/file.go:123
↓ 3 callers
Method
Skip
Skip reads tokens until it has consumed the end element matching the most recent start element already consumed. It recurs if it encounters a start el
pkg/webdav/internal/xml/read.go:677
↓ 3 callers
Function
SniffContentLength
SniffContentLength tries to get the content length from the request. It also returns a reader that will limit to the sniffed content length.
pkg/request/utils.go:21
↓ 3 callers
Method
Start
Start returns the byte index of current chunk
pkg/filemanager/chunk/chunk.go:134
↓ 3 callers
Function
StatusIn
StatusIn applies the In predicate on the "status" field.
ent/task/where.go:300
↓ 3 callers
Function
StatusValidator
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
ent/user/user.go:199
↓ 3 callers
Function
StatusValidator
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
ent/task/task.go:111
↓ 3 callers
Function
StatusValidator
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
ent/node/node.go:115
↓ 3 callers
Function
StoragePolicyEntities
StoragePolicyEntities applies equality check predicate on the "storage_policy_entities" field. It's identical to StoragePolicyEntitiesEQ.
ent/entity/where.go:95
↓ 3 callers
Function
Subscriber
Subscriber applies equality check predicate on the "subscriber" field. It's identical to SubscriberEQ.
ent/fsevent/where.go:80
↓ 3 callers
Method
TasksIDs
TasksIDs returns the "tasks" edge IDs in the mutation.
ent/mutation.go:16015
↓ 3 callers
Method
ThumbSlaveSidecarSuffix
ThumbSlaveSidecarSuffix returns the suffix of slave sidecar thumbnails.
pkg/setting/provider.go:122
↓ 3 callers
Function
Type
Type applies equality check predicate on the "type" field. It's identical to TypeEQ.
ent/file/where.go:69
↓ 3 callers
Function
TypeIn
TypeIn applies the In predicate on the "type" field.
ent/task/where.go:235
↓ 3 callers
Function
TypeValidator
TypeValidator is a validator for the "type" field enum values. It is called by the builders before save.
ent/node/node.go:138
↓ 3 callers
Method
UAParser
UAParser Get a singleton uaparser.Parser instance for user agent parsing.
application/dependency/dependency.go:138
↓ 3 callers
Method
Unsubscribe
Unsubscribe marks the subscriber as offline instead of removing it. Buffered events will be kept for when the subscriber reconnects. Subscribers that
pkg/filemanager/eventhub/eventhub.go:22
↓ 3 callers
Method
Upload
(ctx context.Context, file *fs.UploadRequest)
pkg/filemanager/driver/onedrive/client.go:36
↓ 3 callers
Method
Uri
Uri returns the URI of the file. If isRoot is true, the URI will be returned from owner's view. Otherwise, the URI will be returned from user's view.
pkg/filemanager/fs/dbfs/file.go:177
↓ 3 callers
Method
UserRoot
UserRoot return the root file from user's view.
pkg/filemanager/fs/dbfs/file.go:227
↓ 3 callers
Method
UsersIDs
UsersIDs returns the "users" edge IDs in the mutation.
ent/mutation.go:5913
← previous
next →
1,001–1,100 of 11,486, ranked by callers