Versions in this module Expand all Collapse all v0 v0.1.0 Oct 20, 2024 Changes in this version + const TopicAssetSaved + func NewFileService(workingDirectory string, log *slog.Logger) fileService + func NewHTTPClient() *httpClientImpl + type Asset struct + Content string + ContentType string + Namespace string + Parent *Asset + Path string + URL string + func (a Asset) GetParentURL() *string + type AssetService interface + AsyncFetchAndSave func(ctx context.Context, req AsyncFetchAndSaveRequest) + AsyncSaveAsset func(ctx context.Context, asset Asset) + func NewAssetService(cfg AssetServiceConfig) AssetService + type AssetServiceConfig struct + EventBus eventbus.EventBus + FetchConcurrency int + FileService fileService + HTTPClient httpClient + Logger *slog.Logger + SaveConcurrency int + type AsyncFetchAndSaveRequest struct + ContentType string + Namespace string + ParentURL *string + URL string + type EventAssetSaved struct + Asset Asset