mock

package
v0.0.0-...-d500d3c Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MIT Imports: 4 Imported by: 0

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.

func (*AsyncQueryService) Query

func (s *AsyncQueryService) Query(ctx context.Context, req *query.Request) (flux.Query, error)

Query writes the results of the query request.

type ProxyQueryService

type ProxyQueryService struct {
	QueryF func(ctx context.Context, w io.Writer, req *query.ProxyRequest) (int64, error)
}

ProxyQueryService mocks the idep QueryService for testing.

func (*ProxyQueryService) Query

Query writes the results of the query request.

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

Query writes the results of the query request.

Jump to

Keyboard shortcuts

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