type
StorageFactory
Lazy lifecycle-owned upload-storage constructor.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The server lifecycle context, cancelled during shutdown. |
Returns
One opened backend owned by Execute, or a startup error.
(storage.Backend, error)How it works
This is runtime infrastructure, not a plugin. Execute closes closable storage before the document store.
Full signature
type StorageFactory func(context.Context) (storage.Backend, error)Related types
BackendStore, open, list, and delete upload objects.