frostfs-node/pkg/services/object/search/query/query.go
Leonard Lyubich 51e373c3f0 [#61] object/search: Support latest search filters
Refactor query to match object and its parents in a single call. Support
KeyRoot and KeyLeaf filters.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
2020-10-02 11:25:36 +03:00

11 lines
248 B
Go

package query
import (
objectSDK "github.com/nspcc-dev/neofs-api-go/pkg/object"
"github.com/nspcc-dev/neofs-node/pkg/core/object"
)
type Query interface {
ToSearchFilters() objectSDK.SearchFilters
Match(*object.Object, func(*objectSDK.ID))
}