Constructor
(abstract) new Store(config)
Instantiate the store.
Name | Type | Description |
---|---|---|
config |
object | the store's configuration |
- Source:
Extends
Members
(private) _di_allow_defer :boolean
If true, the injector will defer the class if the class requests any services that the container is missing. These services are filled in later and added to the prototype and any instances. True by default.
- boolean
- Source:
(private) _di_deferred_instances :Array.<module:flitter-di/src/Injectable~Injectable>
Collection of instances of this class that need to have the deferred service instances injected into them when the deferred services are finally provided.
- Source:
(private) _di_deferred_services :Array.<string>
List of services that were deferred and not provided at the time of injection.
- Array.<string>
- Source:
config :object
The configuration for this store.
- object
- Source:
Methods
(async) init() → {Promise.<void>}
Initializes the store. Called once when the application is started. This is where any logic required to connect to, prepare, or guarantee the store is ready to use should occur.
- Source:
- Type
- Promise.<void>
(async, abstract) send_file(file, response) → {Promise.<void>}
Send the specified file as the data for the response. This should set the appropriate Content-Type and Content-Disposition headers.
Name | Type | Description |
---|---|---|
file |
module:flitter-upload/model/File~File | the file to send |
response |
express/response | the response |
- Source:
- Type
- Promise.<void>
(async, abstract) store(params) → {Promise.<module:flitter-upload/model/File~File>}
Permanently store a temporarily uploaded file in this store.
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object |
Properties
|
- Source:
- Type
- Promise.<module:flitter-upload/model/File~File>