forked from TrueCloudLab/frostfs-node
bf2c33d7a9
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
27 lines
319 B
Go
27 lines
319 B
Go
package getsvc
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
|
)
|
|
|
|
type Prm struct {
|
|
local, full bool
|
|
|
|
addr *object.Address
|
|
}
|
|
|
|
func (p *Prm) OnlyLocal(v bool) *Prm {
|
|
if p != nil {
|
|
p.local = v
|
|
}
|
|
|
|
return p
|
|
}
|
|
|
|
func (p *Prm) WithAddress(v *object.Address) *Prm {
|
|
if p != nil {
|
|
p.addr = v
|
|
}
|
|
|
|
return p
|
|
}
|