test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2013 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(qc network.QueryChannel, q string) ([]interface{}, []query.Error, query.Error)

func Start

func Start(site, pool string) network.QueryChannel

Types

type MockQuery

type MockQuery struct {
	// contains filtered or unexported fields
}

func (*MockQuery) Request

func (this *MockQuery) Request() network.QueryRequest

func (*MockQuery) Response

func (this *MockQuery) Response() network.QueryResponse

func (*MockQuery) SetStopChannel

func (this *MockQuery) SetStopChannel(stopChannel misc.StopChannel)

func (*MockQuery) StartTime added in v0.6.0

func (this *MockQuery) StartTime() time.Time

type MockResponse

type MockResponse struct {
	// contains filtered or unexported fields
}

func (*MockResponse) NoMoreResults

func (this *MockResponse) NoMoreResults()

func (*MockResponse) SendError

func (this *MockResponse) SendError(err query.Error)

func (*MockResponse) SendResult

func (this *MockResponse) SendResult(val interface{})

Jump to

Keyboard shortcuts

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