pkg/

directory
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT

README

公共库

可被外部项目导入的公共 Go 包。注意:本项目的内部包放在 core/ 下,pkg/ 用于需要对外暴露的库。

外部文件与媒体

  • pkg/remotefs:外部层级文件系统公共契约,包含 local 与 BaiduPan driver。参见 模块设计 和 使用指南。
  • pkg/media:本地媒体元数据探测契约,包含 ffprobe driver。参见 模块设计 和 使用指南。

服务 SDK

  • pkg/sdingest:SDIngest typed Go SDK。BaseURL 携带部署前缀(例如 /api),SDK 只追加 /v1/...,并管理 App Token、幂等写请求、任务/产物 DTO、业务错误和 Callback。参见 模块设计 和 使用指南。

Directories

Path Synopsis
eventbus
Package ipdb provides local IP database lookups.
Package ipdb provides local IP database lookups.
Package media defines provider-neutral media metadata probing contracts.
Package media defines provider-neutral media metadata probing contracts.
ffprobe
Package ffprobe implements media.Prober with a local ffprobe executable.
Package ffprobe implements media.Prober with a local ffprobe executable.
payment
airwallex
Package airwallex adapts Airwallex to core/payment.
Package airwallex adapts Airwallex to core/payment.
airwallex/httpapi
Package httpapi implements the Airwallex Payments HTTP protocol.
Package httpapi implements the Airwallex Payments HTTP protocol.
queue
store
Package store 提供限流状态存储后端(内存 / Redis)
Package store 提供限流状态存储后端(内存 / Redis)
strategy
Package strategy BBR 自适应限流器
Package strategy BBR 自适应限流器
realtime
sse
ws
Package remotefs defines provider-neutral contracts for reading hierarchical files from external file systems.
Package remotefs defines provider-neutral contracts for reading hierarchical files from external file systems.
driver/baidupan
Package baidupan implements RemoteFS by running a separately configured BaiduPCS-Go process for each FileSystem instance.
Package baidupan implements RemoteFS by running a separately configured BaiduPCS-Go process for each FileSystem instance.
driver/local
Package local implements RemoteFS over a confined local directory.
Package local implements RemoteFS over a confined local directory.
Package sdingest provides a typed client for the versioned SDIngest OpenAPI.
Package sdingest provides a typed client for the versioned SDIngest OpenAPI.
security
sms
Package storage provides high-level file upload, download, validation, image helpers, and storage driver dispatch.
Package storage provides high-level file upload, download, validation, image helpers, and storage driver dispatch.
core
Package core defines shared storage contracts, metadata, config, and small helpers.
Package core defines shared storage contracts, metadata, config, and small helpers.

Jump to

Keyboard shortcuts

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