MCPcopy Create free account

hub / github.com/GetcharZp/cloud-disk / functions

Functions93 in github.com/GetcharZp/cloud-disk

↓ 10 callersFunctionUUID
()
core/helper/helper.go:91
↓ 4 callersFunctionGenerateToken
(id int, identity, name string, second int)
core/helper/helper.go:32
↓ 2 callersFunctionAnalyzeToken
AnalyzeToken Token 解析
core/helper/helper.go:51
↓ 2 callersFunctionMd5
(s string)
core/helper/helper.go:28
↓ 2 callersFunctionRandCode
()
core/helper/helper.go:81
↓ 1 callersFunctionCosInitPart
CosInitPart 分片上传初始化
core/helper/helper.go:141
↓ 1 callersFunctionCosPartUpload
CosPartUpload 分片上传
core/helper/helper.go:159
↓ 1 callersFunctionCosPartUploadComplete
CosPartUploadComplete 分片上传完成
core/helper/helper.go:192
↓ 1 callersFunctionCosUpload
CosUpload 上传文件到腾讯云
core/helper/helper.go:96
↓ 1 callersMethodFileUpload
(req *types.FileUploadRequest)
core/internal/logic/file_upload_logic.go:27
↓ 1 callersMethodFileUploadChunk
(req *types.FileUploadChunkRequest)
core/internal/logic/file_upload_chunk_logic.go:26
↓ 1 callersMethodFileUploadChunkComplete
(req *types.FileUploadChunkCompleteRequest)
core/internal/logic/file_upload_chunk_complete_logic.go:30
↓ 1 callersFunctionFileUploadChunkCompleteHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_chunk_complete_handler.go:14
↓ 1 callersFunctionFileUploadChunkHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_chunk_handler.go:14
↓ 1 callersFunctionFileUploadHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_handler.go:19
↓ 1 callersMethodFileUploadPrepare
(req *types.FileUploadPrepareRequest)
core/internal/logic/file_upload_prepare_logic.go:28
↓ 1 callersFunctionFileUploadPrepareHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/file_upload_prepare_handler.go:12
↓ 1 callersFunctionInit
(dataSource string)
core/models/init.go:15
↓ 1 callersFunctionInitRedis
(c config.Config)
core/models/init.go:32
↓ 1 callersMethodMailCodeSendRegister
(req *types.MailCodeSendRequest)
core/internal/logic/mail_code_send_register_logic.go:31
↓ 1 callersFunctionMailCodeSendRegisterHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/mail_code_send_register_handler.go:12
↓ 1 callersFunctionMailSendCode
MailSendCode 邮箱验证码发送
core/helper/helper.go:67
↓ 1 callersFunctionMinIOUpload
MinIOUpload 上传到自建的minio中
core/helper/helper.go:119
↓ 1 callersFunctionNewAuthMiddleware
()
core/internal/middleware/auth_middleware.go:11
↓ 1 callersFunctionNewFileUploadChunkCompleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_chunk_complete_logic.go:22
↓ 1 callersFunctionNewFileUploadChunkLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_chunk_logic.go:18
↓ 1 callersFunctionNewFileUploadLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_logic.go:19
↓ 1 callersFunctionNewFileUploadPrepareLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/file_upload_prepare_logic.go:20
↓ 1 callersFunctionNewMailCodeSendRegisterLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/mail_code_send_register_logic.go:23
↓ 1 callersFunctionNewRefreshAuthorizationLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/refresh_authorization_logic.go:20
↓ 1 callersFunctionNewServiceContext
(c config.Config)
core/internal/svc/service_context.go:19
↓ 1 callersFunctionNewShareBasicCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_create_logic.go:21
↓ 1 callersFunctionNewShareBasicDetailLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_detail_logic.go:18
↓ 1 callersFunctionNewShareBasicSaveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/share_basic_save_logic.go:20
↓ 1 callersFunctionNewUserDetailLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_detail_logic.go:20
↓ 1 callersFunctionNewUserFileDeleteLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_delete_logic.go:20
↓ 1 callersFunctionNewUserFileListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_list_logic.go:20
↓ 1 callersFunctionNewUserFileMoveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_move_logic.go:20
↓ 1 callersFunctionNewUserFileNameUpdateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_file_name_update_logic.go:19
↓ 1 callersFunctionNewUserFolderCreateLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_folder_create_logic.go:20
↓ 1 callersFunctionNewUserFolderListLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_folder_list_logic.go:18
↓ 1 callersFunctionNewUserLoginLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_login_logic.go:21
↓ 1 callersFunctionNewUserRegisterLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_register_logic.go:22
↓ 1 callersFunctionNewUserRepositorySaveLogic
(ctx context.Context, svcCtx *svc.ServiceContext)
core/internal/logic/user_repository_save_logic.go:20
↓ 1 callersMethodRefreshAuthorization
(req *types.RefreshAuthorizationRequest, authorization string)
core/internal/logic/refresh_authorization_logic.go:28
↓ 1 callersFunctionRefreshAuthorizationHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/refresh_authorization_handler.go:12
↓ 1 callersFunctionRegisterHandlers
(server *rest.Server, serverCtx *svc.ServiceContext)
core/internal/handler/routes.go:12
↓ 1 callersMethodShareBasicCreate
(req *types.ShareBasicCreateRequest, userIdentity string)
core/internal/logic/share_basic_create_logic.go:29
↓ 1 callersFunctionShareBasicCreateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_create_handler.go:12
↓ 1 callersMethodShareBasicDetail
(req *types.ShareBasicDetailRequest)
core/internal/logic/share_basic_detail_logic.go:26
↓ 1 callersFunctionShareBasicDetailHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_detail_handler.go:12
↓ 1 callersMethodShareBasicSave
(req *types.ShareBasicSaveRequest, userIdentity string)
core/internal/logic/share_basic_save_logic.go:28
↓ 1 callersFunctionShareBasicSaveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/share_basic_save_handler.go:12
↓ 1 callersMethodUserDetail
(req *types.UserDetailRequest)
core/internal/logic/user_detail_logic.go:28
↓ 1 callersFunctionUserDetailHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_detail_handler.go:12
↓ 1 callersMethodUserFileDelete
(req *types.UserFileDeleteRequest, userIdentity string)
core/internal/logic/user_file_delete_logic.go:28
↓ 1 callersFunctionUserFileDeleteHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_delete_handler.go:12
↓ 1 callersMethodUserFileList
(req *types.UserFileListRequest, userIdentity string)
core/internal/logic/user_file_list_logic.go:28
↓ 1 callersFunctionUserFileListHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_list_handler.go:12
↓ 1 callersMethodUserFileMove
(req *types.UserFileMoveRequest, userIdentity string)
core/internal/logic/user_file_move_logic.go:28
↓ 1 callersFunctionUserFileMoveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_move_handler.go:12
↓ 1 callersMethodUserFileNameUpdate
(req *types.UserFileNameUpdateRequest, userIdentity string)
core/internal/logic/user_file_name_update_logic.go:27
↓ 1 callersFunctionUserFileNameUpdateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_file_name_update_handler.go:12
↓ 1 callersMethodUserFolderCreate
(req *types.UserFolderCreateRequest, userIdentity string)
core/internal/logic/user_folder_create_logic.go:28
↓ 1 callersFunctionUserFolderCreateHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_folder_create_handler.go:12
↓ 1 callersMethodUserFolderList
(req *types.UserFolderListRequest)
core/internal/logic/user_folder_list_logic.go:26
↓ 1 callersFunctionUserFolderListHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_folder_list_handler.go:12
↓ 1 callersMethodUserLogin
(req *types.LoginRequest)
core/internal/logic/user_login_logic.go:29
↓ 1 callersFunctionUserLoginHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_login_handler.go:12
↓ 1 callersMethodUserRegister
(req *types.UserRegisterRequest)
core/internal/logic/user_register_logic.go:30
↓ 1 callersFunctionUserRegisterHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_register_handler.go:12
↓ 1 callersMethodUserRepositorySave
(req *types.UserRepositorySaveRequest, userIdentity string)
core/internal/logic/user_repository_save_logic.go:28
↓ 1 callersFunctionUserRepositorySaveHandler
(svcCtx *svc.ServiceContext)
core/internal/handler/user_repository_save_handler.go:12
MethodHandle
(next http.HandlerFunc)
core/internal/middleware/auth_middleware.go:15
MethodTableName
()
core/models/user_basic.go:18
MethodTableName
()
core/models/repository_pool.go:18
MethodTableName
()
core/models/user_repository.go:18
MethodTableName
()
core/models/share_basic.go:18
FunctionTestCheck
文件一致性校验
test/file_test.go:76
FunctionTestFileUploadByFilepath
(t *testing.T)
test/cos_test.go:15
FunctionTestFileUploadByReader
(t *testing.T)
test/cos_test.go:35
FunctionTestGenerateChunkFile
1MB 文件分片
test/file_test.go:17
FunctionTestGenerateUUID
(t *testing.T)
test/uuid_test.go:9
FunctionTestGetValue
(t *testing.T)
test/redis_test.go:24
FunctionTestInitPartUpload
分片上传初始化
test/cos_test.go:60
FunctionTestMergeChunkFile
分片文件的合并
test/file_test.go:48
FunctionTestPartUpload
分片上传
test/cos_test.go:79
FunctionTestPartUploadComplete
分片上传完成
test/cos_test.go:106
FunctionTestRandCode
(t *testing.T)
test/rand_test.go:8
FunctionTestSendMail
(t *testing.T)
test/mail_test.go:11
FunctionTestSetValue
(t *testing.T)
test/redis_test.go:17
FunctionTestXormTest
(t *testing.T)
test/xorm_test.go:13
Functionmain
()
core/core.go:17