filter

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: BSD-3-Clause Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstButForgivingSPRResultsFunc

func FirstButForgivingSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, possible []spr.StandardPlacesResult) (spr.StandardPlacesResult, error)

FirstButForgivingSPRResultsFunc returns the first record in 'possible' or nil.

func FirstSPRResultsFunc

func FirstSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, possible []spr.StandardPlacesResult) (spr.StandardPlacesResult, error)

FirstSPRResultsFunc returns the first record in 'possible' or an error.

func SingleSPRResultsFunc

func SingleSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, possible []spr.StandardPlacesResult) (spr.StandardPlacesResult, error)

FirstSPRResultsFunc returns the first record in 'possible' unless there are multiple results in which can an error is returned.

func WhosOnFirstSPRResultsFunc

func WhosOnFirstSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, possible []spr.StandardPlacesResult) (spr.StandardPlacesResult, error)

Types

type FilterSPRResultsFunc

type FilterSPRResultsFunc func(context.Context, reader.Reader, []byte, []spr.StandardPlacesResult) (spr.StandardPlacesResult, error)

FilterSPRResultsFunc defines a custom function for deriving a single `spr.StandardPlacesResult` from a list of `spr.StandardPlacesResult` instances.

Jump to

Keyboard shortcuts

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