Documentation ¶
Overview ¶
Package filter defines which tickets pass which filters. Other implementations which help filter tickets (eg, a range index lookup) must conform to the same set of tickets being within the filter as here.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PoolFilter ¶ added in v0.10.0
type PoolFilter struct { DoubleRangeFilters []*pb.DoubleRangeFilter StringEqualsFilters []*pb.StringEqualsFilter TagPresentFilters []*pb.TagPresentFilter CreatedBefore time.Time CreatedAfter time.Time }
PoolFilter contains all the filtering criteria from a Pool that the Ticket needs to meet to belong to that Pool.
func NewPoolFilter ¶ added in v0.10.0
func NewPoolFilter(pool *pb.Pool) (*PoolFilter, error)
NewPoolFilter validates a Pool's filtering criteria and returns a PoolFilter.
func (*PoolFilter) In ¶ added in v0.10.0
func (pf *PoolFilter) In(entity filteredEntity) bool
In returns true if the Ticket meets all the criteria for this PoolFilter.
Click to show internal directories.
Click to hide internal directories.