2020-09-25 13:04:55 +00:00
|
|
|
package rangesvc
|
|
|
|
|
2020-09-26 07:50:50 +00:00
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Result struct {
|
|
|
|
head *object.Object
|
|
|
|
|
|
|
|
stream Streamer
|
|
|
|
}
|
|
|
|
|
2020-09-25 13:04:55 +00:00
|
|
|
type Response struct {
|
|
|
|
chunk []byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *Response) PayloadChunk() []byte {
|
|
|
|
return r.chunk
|
|
|
|
}
|
2020-09-26 07:50:50 +00:00
|
|
|
|
|
|
|
func (r *Result) Head() *object.Object {
|
|
|
|
return r.head
|
|
|
|
}
|
|
|
|
|
|
|
|
func (r *Result) Stream() Streamer {
|
|
|
|
return r.stream
|
|
|
|
}
|