forked from TrueCloudLab/frostfs-node
18 lines
216 B
Go
18 lines
216 B
Go
|
package headsvc
|
||
|
|
||
|
import (
|
||
|
"github.com/nspcc-dev/neofs-api-go/pkg/object"
|
||
|
)
|
||
|
|
||
|
type Prm struct {
|
||
|
addr *object.Address
|
||
|
}
|
||
|
|
||
|
func (p *Prm) WithAddress(v *object.Address) *Prm {
|
||
|
if p != nil {
|
||
|
p.addr = v
|
||
|
}
|
||
|
|
||
|
return p
|
||
|
}
|