mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-08 00:26:37 +08:00
收敛 Pages 部署包读取路径
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package ingest
|
||||
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/Rain-kl/Wavelet/internal/model"
|
||||
)
|
||||
|
||||
// OpenedObject is the upload-domain view of a stored object stream.
|
||||
type OpenedObject struct {
|
||||
Body io.ReadCloser
|
||||
ContentType string
|
||||
ContentLength int64
|
||||
Upload model.Upload
|
||||
}
|
||||
|
||||
// Close closes the object body when present.
|
||||
func (o OpenedObject) Close() error {
|
||||
if o.Body == nil {
|
||||
return nil
|
||||
}
|
||||
return o.Body.Close()
|
||||
}
|
||||
Reference in New Issue
Block a user