type

StorageFactory

Lazy lifecycle-owned upload-storage constructor.

Arguments

ArgumentTypeDescription
ctxcontext.ContextThe 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)

Source core/execute.go:42

Related types

  • Backend

    Store, open, list, and delete upload objects.