[#235] object/head: Support raw flag in service

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-12-08 15:59:01 +03:00 committed by Alex Vanin
parent 1d23483828
commit 397d912e19
5 changed files with 33 additions and 3 deletions

View file

@ -11,6 +11,8 @@ type Prm struct {
short bool
addr *object.Address
raw bool
}
func (p *Prm) WithCommonPrm(v *util.CommonPrm) *Prm {
@ -36,3 +38,11 @@ func (p *Prm) WithAddress(v *object.Address) *Prm {
return p
}
func (p *Prm) WithRaw(v bool) *Prm {
if p != nil {
p.raw = v
}
return p
}