forked from TrueCloudLab/frostfs-node
28 lines
319 B
Go
28 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
|
||
|
}
|