presign

package
v0.33.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Abort

func Abort(ctx context.Context, c *app.RequestContext)

Abort . @router /api/v1/presign/abort [POST]

func Complete

func Complete(ctx context.Context, c *app.RequestContext)

Complete . @router /api/v1/presign/complete [POST]

func Init

func Init(ctx context.Context, c *app.RequestContext)

Init . @router /api/v1/presign/upload [POST]

func SetObjectStore

func SetObjectStore(o presignapp.ObjectStore)

SetObjectStore 注入真预签名直传能力(s3 后端时 Init 签发对象存储直传 URL)

func SetPickupBinder added in v0.14.5

func SetPickupBinder(b presignapp.PickupBinder)

SetPickupBinder 注入匿名取件码占位绑定(bootstrap 接线 anonymous 域实现)

func SetService

func SetService(svc *presignapp.Service)

SetService 注入 service(bootstrap 调用,装配好的实例——gen 层不触 gorm/dao)

func SetShareService

func SetShareService(svc presignapp.ShareServiceInterface)

SetShareService 注入 share service(用于 Complete 时写分享表)

func SetStorage

func SetStorage(st presignapp.StorageWriter)

SetStorage 注入存储服务(直传按当前激活后端落盘:local/s3/webdav 一致)

func UploadDirect

func UploadDirect(ctx context.Context, c *app.RequestContext)

UploadDirect 预签名直传端点(手写覆盖,gen router 未注册)。 @router /api/v1/presign/upload-direct/:uploadID [PUT] NOTE: 业务逻辑手写,重新生成 IDL 后需同步。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL