filter

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

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

func Filter

func Filter(tickets []*pb.Ticket, filters []*pb.Filter) []*pb.Ticket

Filter returns all of the passed tickets which are included by all the passed filters.

func InFilter

func InFilter(ticket *pb.Ticket, filter *pb.Filter) bool

InFilter returns if the given ticket is included in the given filter.

func InFilters

func InFilters(ticket *pb.Ticket, filters []*pb.Filter) bool

InFilters returns if the given ticket is included in all of the passed filters.

Types

This section is empty.

Directories

Path Synopsis
Package testcases contains lists of ticket filtering test cases.
Package testcases contains lists of ticket filtering test cases.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL