forked from TrueCloudLab/frostfs-node
abf9ad3573
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
27 lines
361 B
Go
27 lines
361 B
Go
package rangesvc
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-node/pkg/core/object"
|
|
)
|
|
|
|
type Result struct {
|
|
head *object.Object
|
|
|
|
stream Streamer
|
|
}
|
|
|
|
type Response struct {
|
|
chunk []byte
|
|
}
|
|
|
|
func (r *Response) PayloadChunk() []byte {
|
|
return r.chunk
|
|
}
|
|
|
|
func (r *Result) Head() *object.Object {
|
|
return r.head
|
|
}
|
|
|
|
func (r *Result) Stream() Streamer {
|
|
return r.stream
|
|
}
|