Documentation ¶
Overview ¶
(c) 2021 Dapper Labs - ALL RIGHTS RESERVED
Index ¶
- func And(filters ...flow.IdentifierFilter) flow.IdentifierFilter
- func Any(flow.Identifier) bool
- func False(flow.Identifier) bool
- func In(ids ...flow.Identifier) flow.IdentifierFilter
- func InSet(ids map[flow.Identifier]struct{}) flow.IdentifierFilter
- func Is(expectedID flow.Identifier) flow.IdentifierFilter
- func Not(filter flow.IdentifierFilter) flow.IdentifierFilter
- func Or(filters ...flow.IdentifierFilter) flow.IdentifierFilter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func And ¶
func And(filters ...flow.IdentifierFilter) flow.IdentifierFilter
And combines two or more filters that all need to be true.
func Any ¶
func Any(flow.Identifier) bool
Any is a flow.IdentifierFilter. It accepts all identifiers.
func False ¶
func False(flow.Identifier) bool
False is a flow.IdentifierFilter. It accepts no identifier.
func In ¶
func In(ids ...flow.Identifier) flow.IdentifierFilter
In constructs a filter that returns true if and only if the Identifier is in the provided list.
func InSet ¶
func InSet(ids map[flow.Identifier]struct{}) flow.IdentifierFilter
InSet constructs a filter that returns true if and only if the Identifier is in the provided map. CAUTION: input map is _not_ copied
func Is ¶
func Is(expectedID flow.Identifier) flow.IdentifierFilter
Is constructs a filter that returns true if and only if the Identifier is identical to the expectedID.
func Not ¶
func Not(filter flow.IdentifierFilter) flow.IdentifierFilter
Not returns a filter equivalent to the inverse of the input filter.
func Or ¶
func Or(filters ...flow.IdentifierFilter) flow.IdentifierFilter
Or combines two or more filters and only needs one of them to be true.
Types ¶
This section is empty.