Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDownloader ¶
func NewDownloader[TReference any](base object.Downloader[TReference]) object.Downloader[TReference]
NewDownloader creates a decorator for object.Downloader that causes all NOT_FOUND errors returned by DownloadObject() to be translated to FAILED_PRECONDITION.
This decorator can be used on workers that expect that all objects references by actions that they receive are present in storage. If objects cannot be read from storage, it's not desirable to let the execution of the action itself fail with NOT_FOUND.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.