Documentation
¶
Overview ¶
Package backends constructs a docstore.Store from configuration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Open ¶
Open returns the store selected by cfg.Type (sqlite | postgres | dynamodb | memory), running migrations / table creation as configured. Size and quota limits from cfg (MaxDocBytes, MaxDocsPerSite) are enforced by the returned store.
For sqlite the parent directory of cfg.SQLite.Path is created if needed. The caller owns the returned store and must Close it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.