MCPcopy Create free account

hub / github.com/cloudreve/cloudreve / functions

Functions11,486 in github.com/cloudreve/cloudreve

↓ 748 callersMethodNew
New creates a new task with the given args.
inventory/task.go:35
↓ 506 callersFunctionNewError
NewError 返回新的错误对象
pkg/serializer/error.go:23
↓ 359 callersMethodSetField
SetField sets the value of a field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the f
ent/mutation.go:4137
↓ 311 callersMethodString
()
pkg/credmanager/credmanager.go:33
↓ 233 callersMethodSet
设置值,ttl为过期时间,单位为秒
pkg/cache/driver.go:14
↓ 215 callersFunctionFromContext
FromContext retrieves a Dep instance from context.
application/dependency/dependency.go:219
↓ 208 callersMethodWhere
Where adds a new predicate for the NodeQuery builder.
ent/node_query.go:33
↓ 191 callersMethodQuery
Query calls tx.Query.
ent/tx.go:253
↓ 180 callersMethodInfo
(format string, v ...any)
pkg/logging/logger.go:18
↓ 166 callersMethodAdd
Add adds an error to the aggregate
pkg/serializer/error.go:401
↓ 165 callersMethodWarning
(format string, v ...any)
pkg/logging/logger.go:17
↓ 161 callersFunctionErr
Err Builds error response without addition details, code and message will be retrieved from error if possible
pkg/serializer/error.go:380
↓ 160 callersFunctionsetContextOp
setContextOp returns a new context with the given QueryContext attached (including its op) in case it does not exist.
ent/ent.go:556
↓ 157 callersMethodExec
(string, []driver.Value)
inventory/client.go:144
↓ 141 callersFunctionParametersFromContext
ParametersFromContext retrieves request parameters from context
routers/controllers/main.go:117
↓ 138 callersMethodError
Error returns the error of the Task
pkg/queue/task.go:44
↓ 137 callersMethodTo
To returns the file by path. If given path is not exist, returns ErrFileNotFound and most-recent ancestor.
pkg/filemanager/fs/dbfs/navigator.go:41
↓ 114 callersMethodUpdatedAt
()
pkg/filemanager/fs/fs.go:151
↓ 110 callersMethodGet
取值,并返回是否成功
pkg/cache/driver.go:17
↓ 108 callersMethodDialect
Dialect returns the dialect of the driver we started the transaction from.
ent/tx.go:234
↓ 102 callersFunctionUserFromContext
UserFromContext get user from context
inventory/user.go:415
↓ 98 callersMethodClearField
ClearField clears the value of the field with the given name. It returns an error if the field is not defined in the schema.
ent/mutation.go:4309
↓ 93 callersMethodJoin
(elem ...string)
pkg/filemanager/fs/uri.go:165
↓ 91 callersMethodDebug
(format string, v ...any)
pkg/logging/logger.go:19
↓ 86 callersMethodParse
(rs io.ReadSeeker, size int)
pkg/mediameta/exif.go:520
↓ 85 callersMethodQuery
Query logs its params and calls the underlying transaction Query method.
inventory/debug/debug.go:153
↓ 85 callersMethodSettingProvider
SettingProvider Get a singleton setting.Provider instance for access setting store in strong type.
application/dependency/dependency.go:74
↓ 84 callersMethodError
(...any)
ent/enttest/enttest.go:21
↓ 83 callersMethodCreatedAt
()
pkg/filemanager/fs/fs.go:152
↓ 82 callersMethodgetString
(ctx context.Context, name string, defaultVal string)
pkg/setting/provider.go:947
↓ 79 callersFunctionNewFileManager
(dep dependency.Dep, u *ent.User)
pkg/filemanager/manager/manager.go:152
↓ 75 callersMethodSave
Save 保存图像到给定路径
pkg/thumb/builtin.go:93
↓ 74 callersMethodUnlock
Unlock unlocks files by given tokens.
pkg/filemanager/fs/fs.go:125
↓ 72 callersMethodClose
Close 关闭驱动
pkg/email/mail.go:11
↓ 72 callersFunctionRequiredScopes
RequiredScopes checks if the JWT token has the required scopes. If the token has scopes (hasScopes is true), it verifies the token has all required sc
middleware/auth.go:279
↓ 71 callersMethodUnlock
()
pkg/queue/task.go:75
↓ 71 callersFunctionp
(d interface{ Fields() []ent.Field }, w interface{ WhereP(...func(*sql.Selector)) })
ent/schema/common.go:72
↓ 68 callersMethodLock
Lock locks a file. If zeroDepth is true, only the file itself will be locked. Ancestor is closest ancestor of the file that will be locked, if the giv
pkg/filemanager/fs/fs.go:122
↓ 67 callersMethodHashIDEncoder
HashIDEncoder Get a singleton hashid.Encoder instance for encoding/decoding hashids.
application/dependency/dependency.go:96
↓ 67 callersMethodName
()
pkg/cluster/node.go:34
↓ 66 callersMethodLock
()
pkg/queue/task.go:74
↓ 65 callersMethodLen
()
pkg/webdav/lock.go:388
↓ 65 callersMethodSize
()
pkg/filemanager/fs/fs.go:150
↓ 64 callersFunctionIsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
ent/ent.go:237
↓ 64 callersFunctionwithHooks
withHooks invokes the builder operation with the given hooks, if any.
ent/ent.go:522
↓ 62 callersMethodValue
Value returns the ent.Value that was dynamically selected and assigned to the File. This includes values selected through modifiers, order, etc.
ent/file.go:272
↓ 61 callersMethodLimit
Limit the number of records to be returned by this query.
ent/intercept/intercept.go:37
↓ 60 callersMethodID
()
pkg/filemanager/fs/fs.go:145
↓ 60 callersMethodLogger
Logger Get a singleton logging.Logger instance.
application/dependency/dependency.go:59
↓ 59 callersMethodStatus
Status returns the Task status
pkg/queue/task.go:30
↓ 58 callersMethodUri
Uri returns the URI of the file.
pkg/filemanager/fs/fs.go:155
↓ 58 callersMethodWithError
WithError 将应用error携带标准库中的error
pkg/serializer/error.go:41
↓ 56 callersMethodCreate
New creates a new user. If user email registered, existed User will be returned.
inventory/user.go:51
↓ 54 callersMethodType
Type returns the Task type
pkg/queue/task.go:28
↓ 53 callersFunctionNewUriFromString
(u string)
pkg/filemanager/fs/uri.go:44
↓ 53 callersMethodRecycle
Recycle reset current FileManager object and put back to resource pool
pkg/filemanager/manager/manager.go:106
↓ 52 callersMethodClose
Close shuts down the event hub and disconnects all subscribers.
pkg/filemanager/eventhub/eventhub.go:26
↓ 51 callersMethodEncode
(v []int)
pkg/hashid/hash.go:33
↓ 50 callersMethodID
ID returns the Task ID
pkg/queue/task.go:26
↓ 50 callersMethodSave
Save executes the query and returns the number of nodes affected by the update operation.
ent/file_update.go:462
↓ 49 callersMethodDelete
Delete values by [Prefix + key]. If no ket is presented, all keys with given prefix will be deleted.
pkg/cache/driver.go:26
↓ 49 callersMethodUpdateOne
UpdateOne returns an update builder for the given entity.
ent/client.go:874
↓ 48 callersMethodName
()
pkg/filemanager/fs/fs.go:146
↓ 48 callersMethodUnix
()
pkg/conf/conf.go:22
↓ 46 callersMethodAll
All executes the query and returns a list of Nodes.
ent/node_query.go:186
↓ 46 callersMethodDeletedAt
DeletedAt returns the value of the "deleted_at" field in the mutation.
ent/mutation.go:7328
↓ 46 callersMethodIndex
Index returns current chunk index, starts from 0
pkg/filemanager/chunk/chunk.go:154
↓ 43 callersMethodSetName
SetName sets the "name" field.
ent/mutation.go:3244
↓ 43 callersMethodUserClient
UserClient Creates a new inventory.UserClient instance for access DB user store.
application/dependency/dependency.go:76
↓ 42 callersMethodFirst
First returns the first Node entity from the query. Returns a *NotFoundError when no Node was found.
ent/node_query.go:87
↓ 42 callersMethodRequest
Request send a HTTP request
pkg/request/request.go:49
↓ 41 callersMethodNext
(err error)
pkg/filemanager/chunk/backoff/backoff.go:14
↓ 40 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the StoragePolicyCreate.OnConflict documentation for more info.
ent/storagepolicy_create.go:823
↓ 40 callersMethodUpdate
Update allows overriding fields `UPDATE` values. See the StoragePolicyCreateBulk.OnConflict documentation for more info.
ent/storagepolicy_create.go:1319
↓ 39 callersFunctionFromContext
FromContext retrieves a logger from context.
pkg/logging/logger.go:84
↓ 39 callersMethodQuery
Query returns a query builder for File.
ent/client.go:905
↓ 38 callersFunctionWithContext
WithContext 设置请求上下文
pkg/request/options.go:75
↓ 38 callersMethodgetInt
(ctx context.Context, name string, defaultVal int)
pkg/setting/provider.go:895
↓ 37 callersMethodSiteURL
SiteURL returns the basic URL.
pkg/setting/provider.go:52
↓ 36 callersMethodEnabled
Enabled returns if current generator is enabled.
pkg/thumb/pipeline.go:30
↓ 36 callersMethodFields
Fields of the File.
ent/schema/file.go:22
↓ 36 callersMethodOffset
Offset to start from.
ent/intercept/intercept.go:39
↓ 35 callersMethodCall
Call sends a request of rpc to aria2 daemon
pkg/downloader/aria2/rpc/call.go:19
↓ 35 callersMethodCheckHTTPResponse
CheckHTTPResponse 检查请求响应HTTP状态码
pkg/request/request.go:249
↓ 35 callersMethodValue
Value implements the driver.Valuer method.
pkg/boolset/boolset.go:55
↓ 35 callersMethodgetBoolean
(ctx context.Context, name string, defaultVal bool)
pkg/setting/provider.go:937
↓ 34 callersFunctionEncodeUserID
EncodeUserID encode user id to hash id
pkg/hashid/hash.go:79
↓ 34 callersMethodType
()
pkg/filemanager/fs/fs.go:149
↓ 33 callersMethodDecode
(raw string, t int)
pkg/hashid/hash.go:34
↓ 33 callersMethodMutate
Mutate implements the ent.Mutator interface.
ent/client.go:295
↓ 33 callersMethodOp
Op returns the operation name.
ent/mutation.go:4017
↓ 32 callersMethodAddField
AddField adds the value to the field with the given name. It returns an error if the field is not defined in the schema, or if the type mismatched the
ent/mutation.go:4254
↓ 32 callersMethodDo
(ctx context.Context)
pkg/queue/task.go:23
↓ 32 callersMethodInt
Int returns a single int from a selector. It is only allowed when selecting one field.
ent/ent.go:402
↓ 32 callersMethodKV
KV Get a singleton cache.Driver instance for KV store.
application/dependency/dependency.go:67
↓ 32 callersMethodRegister
Register 新用户注册
service/user/register.go:33
↓ 32 callersFunctionWithLogger
WithLogger set logger for logging requests
pkg/request/options.go:158
↓ 32 callersFunctionscanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
ent/ent.go:603
↓ 31 callersFunctionRollback
(tx *Tx)
inventory/tx.go:80
↓ 30 callersMethodDeletedAtCleared
DeletedAtCleared returns if the "deleted_at" field was cleared in this mutation.
ent/mutation.go:7360
next →1–100 of 11,486, ranked by callers