NewUploader
No overview available.
def NewUploader(
_: context.Context,
store: *storage.DataStore,
format: core.DataLoadingConfig_LiteralMapFormat,
mode: core.IOStrategy_UploadMode,
errorFileName: string
) - > Uploader
Creates and returns a new Uploader instance, configured with the specified data format, storage, upload mode, and error file name. Callers use this to initialize an object capable of handling data uploads according to defined specifications.
Parameters
| Name | Type | Description |
|---|---|---|
| _ | context.Context | The context for the operation, typically used for cancellation or deadlines. This parameter is currently unused. |
| store | *storage.DataStore | The data store where the uploaded data will be persisted. |
| format | core.DataLoadingConfig_LiteralMapFormat | The format of the data to be uploaded, defining how the data should be interpreted. |
| mode | core.IOStrategy_UploadMode | The upload mode, specifying the strategy for handling the upload process (e.g., overwrite, append). |
| errorFileName | string | The name of the file where any upload errors will be logged or stored. |
Returns
| Type | Description |
|---|---|
Uploader | A new Uploader instance configured with the provided parameters. |