[#230] engine: Rename WithAddress to WithAddresses for delete operations

Delete works with multiple addresses at once so it is convenient to
show it in parameter setter function.

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2020-12-03 12:53:08 +03:00
parent 7c97bd1360
commit a488d202e1
4 changed files with 8 additions and 8 deletions

View file

@ -15,10 +15,10 @@ type DeletePrm struct {
// DeleteRes groups resulting values of Delete operation.
type DeleteRes struct{}
// WithAddress is a Delete option to set the addresses of the objects to delete.
// WithAddresses is a Delete option to set the addresses of the objects to delete.
//
// Option is required.
func (p *DeletePrm) WithAddress(addr ...*objectSDK.Address) *DeletePrm {
func (p *DeletePrm) WithAddresses(addr ...*objectSDK.Address) *DeletePrm {
if p != nil {
p.addr = append(p.addr, addr...)
}