Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GetcharZp/cloud-disk
/ functions
Functions
93 in github.com/GetcharZp/cloud-disk
⨍
Functions
93
◇
Types & classes
68
↓ 10 callers
Function
UUID
()
core/helper/helper.go:91
↓ 4 callers
Function
GenerateToken
(id int, identity, name string, second int)
core/helper/helper.go:32
↓ 2 callers
Function
AnalyzeToken
AnalyzeToken Token 解析
core/helper/helper.go:51
↓ 2 callers
Function
Md5
(s string)
core/helper/helper.go:28
↓ 2 callers
Function
RandCode
()
core/helper/helper.go:81
↓ 1 callers
Function
CosInitPart
CosInitPart 分片上传初始化
core/helper/helper.go:141
↓ 1 callers
Function
CosPartUpload
CosPartUpload 分片上传
core/helper/helper.go:159
↓ 1 callers
Function
CosPartUploadComplete
CosPartUploadComplete 分片上传完成
core/helper/helper.go:192
↓ 1 callers
Function
CosUpload
CosUpload 上传文件到腾讯云
core/helper/helper.go:96
↓ 1 callers
Method
FileUpload
(req *types.FileUploadRequest)
core/internal/logic/file_upload_logic.go:27
↓ 1 callers
Method
FileUploadChunk
(req *types.FileUploadChunkRequest)
core/internal/logic/file_upload_chunk_logic.go:26
↓ 1 callers
Method
FileUploadChunkComplete
(req *types.FileUploadChunkCompleteRequest)
core/internal/logic/file_upload_chunk_complete_logic.go:30
↓ 1 callers
Function
FileUploadChunkCompleteHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_chunk_complete_handler.go:14
↓ 1 callers
Function
FileUploadChunkHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_chunk_handler.go:14
↓ 1 callers
Function
FileUploadHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_handler.go:19
↓ 1 callers
Method
FileUploadPrepare
(req *types.FileUploadPrepareRequest)
core/internal/logic/file_upload_prepare_logic.go:28
↓ 1 callers
Function
FileUploadPrepareHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_prepare_handler.go:12
↓ 1 callers
Function
Init
(dataSource string)
core/models/init.go:15
↓ 1 callers
Function
InitRedis
(c config.Config)
core/models/init.go:32
↓ 1 callers
Method
MailCodeSendRegister
(req *types.MailCodeSendRequest)
core/internal/logic/mail_code_send_register_logic.go:31
↓ 1 callers
Function
MailCodeSendRegisterHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/mail_code_send_register_handler.go:12
↓ 1 callers
Function
MailSendCode
MailSendCode 邮箱验证码发送
core/helper/helper.go:67
↓ 1 callers
Function
MinIOUpload
MinIOUpload 上传到自建的minio中
core/helper/helper.go:119
↓ 1 callers
Function
NewAuthMiddleware
()
core/internal/middleware/auth_middleware.go:11
↓ 1 callers
Function
NewFileUploadChunkCompleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_chunk_complete_logic.go:22
↓ 1 callers
Function
NewFileUploadChunkLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_chunk_logic.go:18
↓ 1 callers
Function
NewFileUploadLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_logic.go:19
↓ 1 callers
Function
NewFileUploadPrepareLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_prepare_logic.go:20
↓ 1 callers
Function
NewMailCodeSendRegisterLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/mail_code_send_register_logic.go:23
↓ 1 callers
Function
NewRefreshAuthorizationLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/refresh_authorization_logic.go:20
↓ 1 callers
Function
NewServiceContext
(c config.Config)
core/internal/svc/service_context.go:19
↓ 1 callers
Function
NewShareBasicCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_create_logic.go:21
↓ 1 callers
Function
NewShareBasicDetailLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_detail_logic.go:18
↓ 1 callers
Function
NewShareBasicSaveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_save_logic.go:20
↓ 1 callers
Function
NewUserDetailLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_detail_logic.go:20
↓ 1 callers
Function
NewUserFileDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_delete_logic.go:20
↓ 1 callers
Function
NewUserFileListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_list_logic.go:20
↓ 1 callers
Function
NewUserFileMoveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_move_logic.go:20
↓ 1 callers
Function
NewUserFileNameUpdateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_name_update_logic.go:19
↓ 1 callers
Function
NewUserFolderCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_folder_create_logic.go:20
↓ 1 callers
Function
NewUserFolderListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_folder_list_logic.go:18
↓ 1 callers
Function
NewUserLoginLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_login_logic.go:21
↓ 1 callers
Function
NewUserRegisterLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_register_logic.go:22
↓ 1 callers
Function
NewUserRepositorySaveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_repository_save_logic.go:20
↓ 1 callers
Method
RefreshAuthorization
(req *types.RefreshAuthorizationRequest, authorization string)
core/internal/logic/refresh_authorization_logic.go:28
↓ 1 callers
Function
RefreshAuthorizationHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/refresh_authorization_handler.go:12
↓ 1 callers
Function
RegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
core/internal/handler/routes.go:12
↓ 1 callers
Method
ShareBasicCreate
(req *types.ShareBasicCreateRequest, userIdentity string)
core/internal/logic/share_basic_create_logic.go:29
↓ 1 callers
Function
ShareBasicCreateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_create_handler.go:12
↓ 1 callers
Method
ShareBasicDetail
(req *types.ShareBasicDetailRequest)
core/internal/logic/share_basic_detail_logic.go:26
↓ 1 callers
Function
ShareBasicDetailHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_detail_handler.go:12
↓ 1 callers
Method
ShareBasicSave
(req *types.ShareBasicSaveRequest, userIdentity string)
core/internal/logic/share_basic_save_logic.go:28
↓ 1 callers
Function
ShareBasicSaveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_save_handler.go:12
↓ 1 callers
Method
UserDetail
(req *types.UserDetailRequest)
core/internal/logic/user_detail_logic.go:28
↓ 1 callers
Function
UserDetailHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_detail_handler.go:12
↓ 1 callers
Method
UserFileDelete
(req *types.UserFileDeleteRequest, userIdentity string)
core/internal/logic/user_file_delete_logic.go:28
↓ 1 callers
Function
UserFileDeleteHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_delete_handler.go:12
↓ 1 callers
Method
UserFileList
(req *types.UserFileListRequest, userIdentity string)
core/internal/logic/user_file_list_logic.go:28
↓ 1 callers
Function
UserFileListHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_list_handler.go:12
↓ 1 callers
Method
UserFileMove
(req *types.UserFileMoveRequest, userIdentity string)
core/internal/logic/user_file_move_logic.go:28
↓ 1 callers
Function
UserFileMoveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_move_handler.go:12
↓ 1 callers
Method
UserFileNameUpdate
(req *types.UserFileNameUpdateRequest, userIdentity string)
core/internal/logic/user_file_name_update_logic.go:27
↓ 1 callers
Function
UserFileNameUpdateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_name_update_handler.go:12
↓ 1 callers
Method
UserFolderCreate
(req *types.UserFolderCreateRequest, userIdentity string)
core/internal/logic/user_folder_create_logic.go:28
↓ 1 callers
Function
UserFolderCreateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_folder_create_handler.go:12
↓ 1 callers
Method
UserFolderList
(req *types.UserFolderListRequest)
core/internal/logic/user_folder_list_logic.go:26
↓ 1 callers
Function
UserFolderListHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_folder_list_handler.go:12
↓ 1 callers
Method
UserLogin
(req *types.LoginRequest)
core/internal/logic/user_login_logic.go:29
↓ 1 callers
Function
UserLoginHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_login_handler.go:12
↓ 1 callers
Method
UserRegister
(req *types.UserRegisterRequest)
core/internal/logic/user_register_logic.go:30
↓ 1 callers
Function
UserRegisterHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_register_handler.go:12
↓ 1 callers
Method
UserRepositorySave
(req *types.UserRepositorySaveRequest, userIdentity string)
core/internal/logic/user_repository_save_logic.go:28
↓ 1 callers
Function
UserRepositorySaveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_repository_save_handler.go:12
Method
Handle
(next http.HandlerFunc)
core/internal/middleware/auth_middleware.go:15
Method
TableName
()
core/models/user_basic.go:18
Method
TableName
()
core/models/repository_pool.go:18
Method
TableName
()
core/models/user_repository.go:18
Method
TableName
()
core/models/share_basic.go:18
Function
TestCheck
文件一致性校验
test/file_test.go:76
Function
TestFileUploadByFilepath
(t *testing.T)
test/cos_test.go:15
Function
TestFileUploadByReader
(t *testing.T)
test/cos_test.go:35
Function
TestGenerateChunkFile
1MB 文件分片
test/file_test.go:17
Function
TestGenerateUUID
(t *testing.T)
test/uuid_test.go:9
Function
TestGetValue
(t *testing.T)
test/redis_test.go:24
Function
TestInitPartUpload
分片上传初始化
test/cos_test.go:60
Function
TestMergeChunkFile
分片文件的合并
test/file_test.go:48
Function
TestPartUpload
分片上传
test/cos_test.go:79
Function
TestPartUploadComplete
分片上传完成
test/cos_test.go:106
Function
TestRandCode
(t *testing.T)
test/rand_test.go:8
Function
TestSendMail
(t *testing.T)
test/mail_test.go:11
Function
TestSetValue
(t *testing.T)
test/redis_test.go:17
Function
TestXormTest
(t *testing.T)
test/xorm_test.go:13
Function
main
()
core/core.go:17