Skip to main content

max / makenotwork

707 B · 26 lines History Blame Raw
1 # s3-storage — Architecture
2
3 Shared S3-compatible storage client for MNW and MT.
4
5 ## What It Does
6
7 Thin wrapper around `aws-sdk-s3` providing upload, download, delete, presigned URLs, CORS configuration, and connectivity checks. Extracted from MNW to avoid duplicating S3 initialization across services.
8
9 ## Consumers
10
11 | Service | Usage |
12 |---------|-------|
13 | MNW | File uploads, download delivery, presigned upload URLs |
14 | MT | Forum image/file uploads |
15
16 ## Key Types
17
18 - `S3Config` — endpoint, bucket, credentials, region
19 - `S3Client` — wraps `aws_sdk_s3::Client` with bucket-scoped operations
20
21 ## Key Paths
22
23 | What | Where |
24 |------|-------|
25 | All code | `src/lib.rs` (single file, ~287 lines) |
26