Documentation ¶
Index ¶
- func RecoverService(err *error)
- type Assets
- func (a *Assets) DescribeByKey(ctx context.Context, assetKey string) (asset *types.Asset, err error)
- func (a *Assets) GetByKey(ctx context.Context, assetKey string, rng *utils.Range) (asset *types.Asset, rc io.ReadCloser, err error)
- func (a *Assets) GetByOriginalUrl(ctx context.Context, originalUrl string, rng *utils.Range) (asset *types.Asset, rc io.ReadCloser, err error)
- func (a *Assets) Store(ctx context.Context, extra *types.Asset, data io.Reader) (asset *types.Asset, err error)
- func (a *Assets) StoreByOriginalUrl(ctx context.Context, originalUrl string, wait bool) (asset *types.Asset, err error)
- type AssetsConfig
- type SeeUrlError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RecoverService ¶
func RecoverService(err *error)
Types ¶
type Assets ¶
type Assets struct { Storage storage.Storage Repo repository.Repository Config AssetsConfig HttpClient *http.Client // contains filtered or unexported fields }
func (*Assets) DescribeByKey ¶
func (*Assets) GetByOriginalUrl ¶
type AssetsConfig ¶
type SeeUrlError ¶
type SeeUrlError struct {
Url string
}
func (*SeeUrlError) Error ¶
func (err *SeeUrlError) Error() string
Click to show internal directories.
Click to hide internal directories.