Back to godoc.org
go.uber.org/yarpc / api / middleware / middlewaretest

Package middlewaretest

v1.46.0
Latest Go to latest

The latest major version is .

Published: May 21, 2020 | License: MIT | Module: go.uber.org/yarpc

Overview

Package middlewaretest is a generated GoMock package.

Index

type MockOnewayInbound

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

MockOnewayInbound is a mock of OnewayInbound interface

func NewMockOnewayInbound

func NewMockOnewayInbound(ctrl *gomock.Controller) *MockOnewayInbound

NewMockOnewayInbound creates a new mock instance

func (*MockOnewayInbound) EXPECT

func (m *MockOnewayInbound) EXPECT() *MockOnewayInboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockOnewayInbound) HandleOneway

func (m *MockOnewayInbound) HandleOneway(arg0 context.Context, arg1 *transport.Request, arg2 transport.OnewayHandler) error

HandleOneway mocks base method

type MockOnewayInboundMockRecorder

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

MockOnewayInboundMockRecorder is the mock recorder for MockOnewayInbound

func (*MockOnewayInboundMockRecorder) HandleOneway

func (mr *MockOnewayInboundMockRecorder) HandleOneway(arg0, arg1, arg2 interface{}) *gomock.Call

HandleOneway indicates an expected call of HandleOneway

type MockOnewayOutbound

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

MockOnewayOutbound is a mock of OnewayOutbound interface

func NewMockOnewayOutbound

func NewMockOnewayOutbound(ctrl *gomock.Controller) *MockOnewayOutbound

NewMockOnewayOutbound creates a new mock instance

func (*MockOnewayOutbound) CallOneway

func (m *MockOnewayOutbound) CallOneway(arg0 context.Context, arg1 *transport.Request, arg2 transport.OnewayOutbound) (transport.Ack, error)

CallOneway mocks base method

func (*MockOnewayOutbound) EXPECT

func (m *MockOnewayOutbound) EXPECT() *MockOnewayOutboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockOnewayOutboundMockRecorder

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

MockOnewayOutboundMockRecorder is the mock recorder for MockOnewayOutbound

func (*MockOnewayOutboundMockRecorder) CallOneway

func (mr *MockOnewayOutboundMockRecorder) CallOneway(arg0, arg1, arg2 interface{}) *gomock.Call

CallOneway indicates an expected call of CallOneway

type MockRouter

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

MockRouter is a mock of Router interface

func NewMockRouter

func NewMockRouter(ctrl *gomock.Controller) *MockRouter

NewMockRouter creates a new mock instance

func (*MockRouter) Choose

func (m *MockRouter) Choose(arg0 context.Context, arg1 *transport.Request, arg2 transport.Router) (transport.HandlerSpec, error)

Choose mocks base method

func (*MockRouter) EXPECT

func (m *MockRouter) EXPECT() *MockRouterMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockRouter) Procedures

func (m *MockRouter) Procedures(arg0 transport.Router) []transport.Procedure

Procedures mocks base method

type MockRouterMockRecorder

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

MockRouterMockRecorder is the mock recorder for MockRouter

func (*MockRouterMockRecorder) Choose

func (mr *MockRouterMockRecorder) Choose(arg0, arg1, arg2 interface{}) *gomock.Call

Choose indicates an expected call of Choose

func (*MockRouterMockRecorder) Procedures

func (mr *MockRouterMockRecorder) Procedures(arg0 interface{}) *gomock.Call

Procedures indicates an expected call of Procedures

type MockStreamInbound

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

MockStreamInbound is a mock of StreamInbound interface

func NewMockStreamInbound

func NewMockStreamInbound(ctrl *gomock.Controller) *MockStreamInbound

NewMockStreamInbound creates a new mock instance

func (*MockStreamInbound) EXPECT

func (m *MockStreamInbound) EXPECT() *MockStreamInboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockStreamInbound) HandleStream

func (m *MockStreamInbound) HandleStream(arg0 *transport.ServerStream, arg1 transport.StreamHandler) error

HandleStream mocks base method

type MockStreamInboundMockRecorder

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

MockStreamInboundMockRecorder is the mock recorder for MockStreamInbound

func (*MockStreamInboundMockRecorder) HandleStream

func (mr *MockStreamInboundMockRecorder) HandleStream(arg0, arg1 interface{}) *gomock.Call

HandleStream indicates an expected call of HandleStream

type MockStreamOutbound

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

MockStreamOutbound is a mock of StreamOutbound interface

func NewMockStreamOutbound

func NewMockStreamOutbound(ctrl *gomock.Controller) *MockStreamOutbound

NewMockStreamOutbound creates a new mock instance

func (*MockStreamOutbound) CallStream

func (m *MockStreamOutbound) CallStream(arg0 context.Context, arg1 *transport.StreamRequest, arg2 transport.StreamOutbound) (*transport.ClientStream, error)

CallStream mocks base method

func (*MockStreamOutbound) EXPECT

func (m *MockStreamOutbound) EXPECT() *MockStreamOutboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockStreamOutboundMockRecorder

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

MockStreamOutboundMockRecorder is the mock recorder for MockStreamOutbound

func (*MockStreamOutboundMockRecorder) CallStream

func (mr *MockStreamOutboundMockRecorder) CallStream(arg0, arg1, arg2 interface{}) *gomock.Call

CallStream indicates an expected call of CallStream

type MockUnaryInbound

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

MockUnaryInbound is a mock of UnaryInbound interface

func NewMockUnaryInbound

func NewMockUnaryInbound(ctrl *gomock.Controller) *MockUnaryInbound

NewMockUnaryInbound creates a new mock instance

func (*MockUnaryInbound) EXPECT

func (m *MockUnaryInbound) EXPECT() *MockUnaryInboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUnaryInbound) Handle

func (m *MockUnaryInbound) Handle(arg0 context.Context, arg1 *transport.Request, arg2 transport.ResponseWriter, arg3 transport.UnaryHandler) error

Handle mocks base method

type MockUnaryInboundMockRecorder

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

MockUnaryInboundMockRecorder is the mock recorder for MockUnaryInbound

func (*MockUnaryInboundMockRecorder) Handle

func (mr *MockUnaryInboundMockRecorder) Handle(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

Handle indicates an expected call of Handle

type MockUnaryOutbound

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

MockUnaryOutbound is a mock of UnaryOutbound interface

func NewMockUnaryOutbound

func NewMockUnaryOutbound(ctrl *gomock.Controller) *MockUnaryOutbound

NewMockUnaryOutbound creates a new mock instance

func (*MockUnaryOutbound) Call

func (m *MockUnaryOutbound) Call(arg0 context.Context, arg1 *transport.Request, arg2 transport.UnaryOutbound) (*transport.Response, error)

Call mocks base method

func (*MockUnaryOutbound) EXPECT

func (m *MockUnaryOutbound) EXPECT() *MockUnaryOutboundMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

type MockUnaryOutboundMockRecorder

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

MockUnaryOutboundMockRecorder is the mock recorder for MockUnaryOutbound

func (*MockUnaryOutboundMockRecorder) Call

func (mr *MockUnaryOutboundMockRecorder) Call(arg0, arg1, arg2 interface{}) *gomock.Call

Call indicates an expected call of Call

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier