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
↓ 748 callers
Method
New
New creates a new task with the given args.
inventory/task.go:35
↓ 506 callers
Function
NewError
NewError 返回新的错误对象
pkg/serializer/error.go:23
↓ 359 callers
Method
SetField
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 callers
Method
String
()
pkg/credmanager/credmanager.go:33
↓ 233 callers
Method
Set
设置值,ttl为过期时间,单位为秒
pkg/cache/driver.go:14
↓ 215 callers
Function
FromContext
FromContext retrieves a Dep instance from context.
application/dependency/dependency.go:219
↓ 208 callers
Method
Where
Where adds a new predicate for the NodeQuery builder.
ent/node_query.go:33
↓ 191 callers
Method
Query
Query calls tx.Query.
ent/tx.go:253
↓ 180 callers
Method
Info
(format string, v ...any)
pkg/logging/logger.go:18
↓ 166 callers
Method
Add
Add adds an error to the aggregate
pkg/serializer/error.go:401
↓ 165 callers
Method
Warning
(format string, v ...any)
pkg/logging/logger.go:17
↓ 161 callers
Function
Err
Err Builds error response without addition details, code and message will be retrieved from error if possible
pkg/serializer/error.go:380
↓ 160 callers
Function
setContextOp
setContextOp returns a new context with the given QueryContext attached (including its op) in case it does not exist.
ent/ent.go:556
↓ 157 callers
Method
Exec
(string, []driver.Value)
inventory/client.go:144
↓ 141 callers
Function
ParametersFromContext
ParametersFromContext retrieves request parameters from context
routers/controllers/main.go:117
↓ 138 callers
Method
Error
Error returns the error of the Task
pkg/queue/task.go:44
↓ 137 callers
Method
To
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 callers
Method
UpdatedAt
()
pkg/filemanager/fs/fs.go:151
↓ 110 callers
Method
Get
取值,并返回是否成功
pkg/cache/driver.go:17
↓ 108 callers
Method
Dialect
Dialect returns the dialect of the driver we started the transaction from.
ent/tx.go:234
↓ 102 callers
Function
UserFromContext
UserFromContext get user from context
inventory/user.go:415
↓ 98 callers
Method
ClearField
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 callers
Method
Join
(elem ...string)
pkg/filemanager/fs/uri.go:165
↓ 91 callers
Method
Debug
(format string, v ...any)
pkg/logging/logger.go:19
↓ 86 callers
Method
Parse
(rs io.ReadSeeker, size int)
pkg/mediameta/exif.go:520
↓ 85 callers
Method
Query
Query logs its params and calls the underlying transaction Query method.
inventory/debug/debug.go:153
↓ 85 callers
Method
SettingProvider
SettingProvider Get a singleton setting.Provider instance for access setting store in strong type.
application/dependency/dependency.go:74
↓ 84 callers
Method
Error
(...any)
ent/enttest/enttest.go:21
↓ 83 callers
Method
CreatedAt
()
pkg/filemanager/fs/fs.go:152
↓ 82 callers
Method
getString
(ctx context.Context, name string, defaultVal string)
pkg/setting/provider.go:947
↓ 79 callers
Function
NewFileManager
(dep dependency.Dep, u *ent.User)
pkg/filemanager/manager/manager.go:152
↓ 75 callers
Method
Save
Save 保存图像到给定路径
pkg/thumb/builtin.go:93
↓ 74 callers
Method
Unlock
Unlock unlocks files by given tokens.
pkg/filemanager/fs/fs.go:125
↓ 72 callers
Method
Close
Close 关闭驱动
pkg/email/mail.go:11
↓ 72 callers
Function
RequiredScopes
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 callers
Method
Unlock
()
pkg/queue/task.go:75
↓ 71 callers
Function
p
(d interface{ Fields() []ent.Field }, w interface{ WhereP(...func(*sql.Selector)) })
ent/schema/common.go:72
↓ 68 callers
Method
Lock
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 callers
Method
HashIDEncoder
HashIDEncoder Get a singleton hashid.Encoder instance for encoding/decoding hashids.
application/dependency/dependency.go:96
↓ 67 callers
Method
Name
()
pkg/cluster/node.go:34
↓ 66 callers
Method
Lock
()
pkg/queue/task.go:74
↓ 65 callers
Method
Len
()
pkg/webdav/lock.go:388
↓ 65 callers
Method
Size
()
pkg/filemanager/fs/fs.go:150
↓ 64 callers
Function
IsNotFound
IsNotFound returns a boolean indicating whether the error is a not found error.
ent/ent.go:237
↓ 64 callers
Function
withHooks
withHooks invokes the builder operation with the given hooks, if any.
ent/ent.go:522
↓ 62 callers
Method
Value
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 callers
Method
Limit
Limit the number of records to be returned by this query.
ent/intercept/intercept.go:37
↓ 60 callers
Method
ID
()
pkg/filemanager/fs/fs.go:145
↓ 60 callers
Method
Logger
Logger Get a singleton logging.Logger instance.
application/dependency/dependency.go:59
↓ 59 callers
Method
Status
Status returns the Task status
pkg/queue/task.go:30
↓ 58 callers
Method
Uri
Uri returns the URI of the file.
pkg/filemanager/fs/fs.go:155
↓ 58 callers
Method
WithError
WithError 将应用error携带标准库中的error
pkg/serializer/error.go:41
↓ 56 callers
Method
Create
New creates a new user. If user email registered, existed User will be returned.
inventory/user.go:51
↓ 54 callers
Method
Type
Type returns the Task type
pkg/queue/task.go:28
↓ 53 callers
Function
NewUriFromString
(u string)
pkg/filemanager/fs/uri.go:44
↓ 53 callers
Method
Recycle
Recycle reset current FileManager object and put back to resource pool
pkg/filemanager/manager/manager.go:106
↓ 52 callers
Method
Close
Close shuts down the event hub and disconnects all subscribers.
pkg/filemanager/eventhub/eventhub.go:26
↓ 51 callers
Method
Encode
(v []int)
pkg/hashid/hash.go:33
↓ 50 callers
Method
ID
ID returns the Task ID
pkg/queue/task.go:26
↓ 50 callers
Method
Save
Save executes the query and returns the number of nodes affected by the update operation.
ent/file_update.go:462
↓ 49 callers
Method
Delete
Delete values by [Prefix + key]. If no ket is presented, all keys with given prefix will be deleted.
pkg/cache/driver.go:26
↓ 49 callers
Method
UpdateOne
UpdateOne returns an update builder for the given entity.
ent/client.go:874
↓ 48 callers
Method
Name
()
pkg/filemanager/fs/fs.go:146
↓ 48 callers
Method
Unix
()
pkg/conf/conf.go:22
↓ 46 callers
Method
All
All executes the query and returns a list of Nodes.
ent/node_query.go:186
↓ 46 callers
Method
DeletedAt
DeletedAt returns the value of the "deleted_at" field in the mutation.
ent/mutation.go:7328
↓ 46 callers
Method
Index
Index returns current chunk index, starts from 0
pkg/filemanager/chunk/chunk.go:154
↓ 43 callers
Method
SetName
SetName sets the "name" field.
ent/mutation.go:3244
↓ 43 callers
Method
UserClient
UserClient Creates a new inventory.UserClient instance for access DB user store.
application/dependency/dependency.go:76
↓ 42 callers
Method
First
First returns the first Node entity from the query. Returns a *NotFoundError when no Node was found.
ent/node_query.go:87
↓ 42 callers
Method
Request
Request send a HTTP request
pkg/request/request.go:49
↓ 41 callers
Method
Next
(err error)
pkg/filemanager/chunk/backoff/backoff.go:14
↓ 40 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the StoragePolicyCreate.OnConflict documentation for more info.
ent/storagepolicy_create.go:823
↓ 40 callers
Method
Update
Update allows overriding fields `UPDATE` values. See the StoragePolicyCreateBulk.OnConflict documentation for more info.
ent/storagepolicy_create.go:1319
↓ 39 callers
Function
FromContext
FromContext retrieves a logger from context.
pkg/logging/logger.go:84
↓ 39 callers
Method
Query
Query returns a query builder for File.
ent/client.go:905
↓ 38 callers
Function
WithContext
WithContext 设置请求上下文
pkg/request/options.go:75
↓ 38 callers
Method
getInt
(ctx context.Context, name string, defaultVal int)
pkg/setting/provider.go:895
↓ 37 callers
Method
SiteURL
SiteURL returns the basic URL.
pkg/setting/provider.go:52
↓ 36 callers
Method
Enabled
Enabled returns if current generator is enabled.
pkg/thumb/pipeline.go:30
↓ 36 callers
Method
Fields
Fields of the File.
ent/schema/file.go:22
↓ 36 callers
Method
Offset
Offset to start from.
ent/intercept/intercept.go:39
↓ 35 callers
Method
Call
Call sends a request of rpc to aria2 daemon
pkg/downloader/aria2/rpc/call.go:19
↓ 35 callers
Method
CheckHTTPResponse
CheckHTTPResponse 检查请求响应HTTP状态码
pkg/request/request.go:249
↓ 35 callers
Method
Value
Value implements the driver.Valuer method.
pkg/boolset/boolset.go:55
↓ 35 callers
Method
getBoolean
(ctx context.Context, name string, defaultVal bool)
pkg/setting/provider.go:937
↓ 34 callers
Function
EncodeUserID
EncodeUserID encode user id to hash id
pkg/hashid/hash.go:79
↓ 34 callers
Method
Type
()
pkg/filemanager/fs/fs.go:149
↓ 33 callers
Method
Decode
(raw string, t int)
pkg/hashid/hash.go:34
↓ 33 callers
Method
Mutate
Mutate implements the ent.Mutator interface.
ent/client.go:295
↓ 33 callers
Method
Op
Op returns the operation name.
ent/mutation.go:4017
↓ 32 callers
Method
AddField
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 callers
Method
Do
(ctx context.Context)
pkg/queue/task.go:23
↓ 32 callers
Method
Int
Int returns a single int from a selector. It is only allowed when selecting one field.
ent/ent.go:402
↓ 32 callers
Method
KV
KV Get a singleton cache.Driver instance for KV store.
application/dependency/dependency.go:67
↓ 32 callers
Method
Register
Register 新用户注册
service/user/register.go:33
↓ 32 callers
Function
WithLogger
WithLogger set logger for logging requests
pkg/request/options.go:158
↓ 32 callers
Function
scanWithInterceptors
(ctx context.Context, rootQuery Q1, selectOrGroup Q2, inters []Interceptor, v any)
ent/ent.go:603
↓ 31 callers
Function
Rollback
(tx *Tx)
inventory/tx.go:80
↓ 30 callers
Method
DeletedAtCleared
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