Documentation
¶
Index ¶
- func FirstButForgivingSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, ...) (spr.StandardPlacesResult, error)
- func FirstSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, ...) (spr.StandardPlacesResult, error)
- func SingleSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, ...) (spr.StandardPlacesResult, error)
- func WhosOnFirstSPRResultsFunc(ctx context.Context, r reader.Reader, body []byte, ...) (spr.StandardPlacesResult, error)
- type FilterSPRResultsFunc
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.
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.
Click to show internal directories.
Click to hide internal directories.