Documentation ¶
Overview ¶
Package coordinators contains retrievers that coordinate multiple child retrievers
Index ¶
- func Coordinator(kind types.CoordinationKind) (types.RetrievalCoordinator, error)
- func Race(ctx context.Context, retrievalCalls []types.CandidateRetrievalCall) (*types.RetrievalStats, error)
- func Sequence(ctx context.Context, retrievalCalls []types.CandidateRetrievalCall) (*types.RetrievalStats, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Coordinator ¶
func Coordinator(kind types.CoordinationKind) (types.RetrievalCoordinator, error)
func Race ¶
func Race(ctx context.Context, retrievalCalls []types.CandidateRetrievalCall) (*types.RetrievalStats, error)
Race retrieves by racing one or more canditate retrievals together, taking the first successful result or returning a combined error if all fail
func Sequence ¶
func Sequence(ctx context.Context, retrievalCalls []types.CandidateRetrievalCall) (*types.RetrievalStats, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.