filter

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MILLISECONDS_PER_SECOND     = 1000
	NANOSECONDS_PER_MILLISECOND = 1000000
	REX_SLOPPY_TIME             = "" /* 139-byte string literal not displayed */
)

Variables

This section is empty.

Functions

func Apply

func Apply(flt Filter, in []geodb.Location, out []geodb.Location) int

* Apply a filter to a set of geographical locations to narrow it down.

func Evaluate

func Evaluate(flt Filter, locs []geodb.Location, result []bool)

* Evaluate whether a set of geographical locations matches filter criteria.

func ParseTime

func ParseTime(timestamp string, sloppy bool, utc bool) (time.Time, error)

* Creates a UTC time stamp from RFC3339 string representation.

Types

type Filter

type Filter interface {
	Evaluate(loc *geodb.Location) bool
}

* A filter for location data.

func Time

func Time(min time.Time, max time.Time) Filter

* Creates a filter which matches data points in a given time interval. * * Time values may be zero to leave either or both of the bounds open.

Jump to

Keyboard shortcuts

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