Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncQueryService ¶
type AsyncQueryService struct {
QueryF func(ctx context.Context, req *query.Request) (flux.Query, error)
}
AsyncQueryService mocks the idep QueryService for testing.
type ProxyQueryService ¶
type ProxyQueryService struct {
QueryF func(ctx context.Context, w io.Writer, req *query.ProxyRequest) (flux.Statistics, error)
}
ProxyQueryService mocks the idpe QueryService for testing.
func (*ProxyQueryService) Check ¶
func (s *ProxyQueryService) Check(ctx context.Context) check.Response
func (*ProxyQueryService) Query ¶
func (s *ProxyQueryService) Query(ctx context.Context, w io.Writer, req *query.ProxyRequest) (flux.Statistics, error)
Query writes the results of the query request.
type Query ¶
Query is a mock implementation of a flux.Query. It contains controls to ensure that the flux.Query object is used correctly. Note: Query will only return one result, specified by calling the SetResults method.
func (*Query) Statistics ¶
func (q *Query) Statistics() flux.Statistics
Statistics will return Statistics. Unlike the normal flux.Query, this will panic if it is called before Done.
type QueryLogger ¶
type QueryService ¶
type QueryService struct {
QueryF func(ctx context.Context, req *query.Request) (flux.ResultIterator, error)
}
QueryService mocks the idep QueryService for testing.
func (*QueryService) Query ¶
func (s *QueryService) Query(ctx context.Context, req *query.Request) (flux.ResultIterator, error)
Query writes the results of the query request.
Click to show internal directories.
Click to hide internal directories.