Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockRequestHandler ¶
type MockRequestHandler struct {
// contains filtered or unexported fields
}
MockRequestHandler implements a mock that implements RequestHandler interface
func NewMockRequestHandler ¶
func NewMockRequestHandler(conf *config.Config) *MockRequestHandler
NewMockRequestHandler returns a new instance of *MockRequestHandler
func (*MockRequestHandler) Expect ¶
func (rh *MockRequestHandler) Expect(cb handlerFunc)
func (*MockRequestHandler) PushRequest ¶
func (rh *MockRequestHandler) PushRequest(ctx context.Context, req *protocol.Request) (*protocol.Response, error)
PushRequest implements RequestHandler interface
func (*MockRequestHandler) Respond ¶
func (rh *MockRequestHandler) Respond(cb handlerFunc)
func (*MockRequestHandler) Stop ¶
func (rh *MockRequestHandler) Stop() error
Click to show internal directories.
Click to hide internal directories.