forked from TrueCloudLab/frostfs-node
39c17253be
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
30 lines
413 B
Go
30 lines
413 B
Go
package getsvc
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
"github.com/nspcc-dev/neofs-node/pkg/services/object/util"
|
|
)
|
|
|
|
type Prm struct {
|
|
common *util.CommonPrm
|
|
|
|
full bool
|
|
|
|
addr *object.Address
|
|
}
|
|
|
|
func (p *Prm) WithCommonPrm(v *util.CommonPrm) *Prm {
|
|
if p != nil {
|
|
p.common = v
|
|
}
|
|
|
|
return p
|
|
}
|
|
|
|
func (p *Prm) WithAddress(v *object.Address) *Prm {
|
|
if p != nil {
|
|
p.addr = v
|
|
}
|
|
|
|
return p
|
|
}
|