Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockClientConn
- func (m *MockClientConn) EXPECT() *MockClientConnMockRecorder
- func (m *MockClientConn) NewSubConn(arg0 []resolver.Address, arg1 balancer.NewSubConnOptions) (balancer.SubConn, error)
- func (m *MockClientConn) RemoveSubConn(arg0 balancer.SubConn)
- func (m *MockClientConn) ResolveNow(arg0 resolver.ResolveNowOptions)
- func (m *MockClientConn) Target() string
- func (m *MockClientConn) UpdateAddresses(arg0 balancer.SubConn, arg1 []resolver.Address)
- func (m *MockClientConn) UpdateState(arg0 balancer.State)
- type MockClientConnMockRecorder
- func (mr *MockClientConnMockRecorder) NewSubConn(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientConnMockRecorder) RemoveSubConn(arg0 interface{}) *gomock.Call
- func (mr *MockClientConnMockRecorder) ResolveNow(arg0 interface{}) *gomock.Call
- func (mr *MockClientConnMockRecorder) Target() *gomock.Call
- func (mr *MockClientConnMockRecorder) UpdateAddresses(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientConnMockRecorder) UpdateState(arg0 interface{}) *gomock.Call
- type MockClientStream
- func (m *MockClientStream) CloseSend() error
- func (m *MockClientStream) Context() context.Context
- func (m *MockClientStream) EXPECT() *MockClientStreamMockRecorder
- func (m *MockClientStream) Header() (metadata.MD, error)
- func (m *MockClientStream) RecvMsg(arg0 interface{}) error
- func (m *MockClientStream) SendMsg(arg0 interface{}) error
- func (m *MockClientStream) Trailer() metadata.MD
- type MockClientStreamMockRecorder
- func (mr *MockClientStreamMockRecorder) CloseSend() *gomock.Call
- func (mr *MockClientStreamMockRecorder) Context() *gomock.Call
- func (mr *MockClientStreamMockRecorder) Header() *gomock.Call
- func (mr *MockClientStreamMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
- func (mr *MockClientStreamMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
- func (mr *MockClientStreamMockRecorder) Trailer() *gomock.Call
- type MockSubConn
- type MockSubConnMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClientConn ¶
type MockClientConn struct {
// contains filtered or unexported fields
}
MockClientConn is a mock of ClientConn interface.
func NewMockClientConn ¶
func NewMockClientConn(ctrl *gomock.Controller) *MockClientConn
NewMockClientConn creates a new mock instance.
func (*MockClientConn) EXPECT ¶
func (m *MockClientConn) EXPECT() *MockClientConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientConn) NewSubConn ¶
func (m *MockClientConn) NewSubConn(arg0 []resolver.Address, arg1 balancer.NewSubConnOptions) (balancer.SubConn, error)
NewSubConn mocks base method.
func (*MockClientConn) RemoveSubConn ¶
func (m *MockClientConn) RemoveSubConn(arg0 balancer.SubConn)
RemoveSubConn mocks base method.
func (*MockClientConn) ResolveNow ¶
func (m *MockClientConn) ResolveNow(arg0 resolver.ResolveNowOptions)
ResolveNow mocks base method.
func (*MockClientConn) UpdateAddresses ¶
func (m *MockClientConn) UpdateAddresses(arg0 balancer.SubConn, arg1 []resolver.Address)
UpdateAddresses mocks base method.
func (*MockClientConn) UpdateState ¶
func (m *MockClientConn) UpdateState(arg0 balancer.State)
UpdateState mocks base method.
type MockClientConnMockRecorder ¶
type MockClientConnMockRecorder struct {
// contains filtered or unexported fields
}
MockClientConnMockRecorder is the mock recorder for MockClientConn.
func (*MockClientConnMockRecorder) NewSubConn ¶
func (mr *MockClientConnMockRecorder) NewSubConn(arg0, arg1 interface{}) *gomock.Call
NewSubConn indicates an expected call of NewSubConn.
func (*MockClientConnMockRecorder) RemoveSubConn ¶
func (mr *MockClientConnMockRecorder) RemoveSubConn(arg0 interface{}) *gomock.Call
RemoveSubConn indicates an expected call of RemoveSubConn.
func (*MockClientConnMockRecorder) ResolveNow ¶
func (mr *MockClientConnMockRecorder) ResolveNow(arg0 interface{}) *gomock.Call
ResolveNow indicates an expected call of ResolveNow.
func (*MockClientConnMockRecorder) Target ¶
func (mr *MockClientConnMockRecorder) Target() *gomock.Call
Target indicates an expected call of Target.
func (*MockClientConnMockRecorder) UpdateAddresses ¶
func (mr *MockClientConnMockRecorder) UpdateAddresses(arg0, arg1 interface{}) *gomock.Call
UpdateAddresses indicates an expected call of UpdateAddresses.
func (*MockClientConnMockRecorder) UpdateState ¶
func (mr *MockClientConnMockRecorder) UpdateState(arg0 interface{}) *gomock.Call
UpdateState indicates an expected call of UpdateState.
type MockClientStream ¶
type MockClientStream struct {
// contains filtered or unexported fields
}
MockClientStream is a mock of ClientStream interface.
func NewMockClientStream ¶
func NewMockClientStream(ctrl *gomock.Controller) *MockClientStream
NewMockClientStream creates a new mock instance.
func (*MockClientStream) CloseSend ¶
func (m *MockClientStream) CloseSend() error
CloseSend mocks base method.
func (*MockClientStream) Context ¶
func (m *MockClientStream) Context() context.Context
Context mocks base method.
func (*MockClientStream) EXPECT ¶
func (m *MockClientStream) EXPECT() *MockClientStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientStream) Header ¶
func (m *MockClientStream) Header() (metadata.MD, error)
Header mocks base method.
func (*MockClientStream) RecvMsg ¶
func (m *MockClientStream) RecvMsg(arg0 interface{}) error
RecvMsg mocks base method.
func (*MockClientStream) SendMsg ¶
func (m *MockClientStream) SendMsg(arg0 interface{}) error
SendMsg mocks base method.
func (*MockClientStream) Trailer ¶
func (m *MockClientStream) Trailer() metadata.MD
Trailer mocks base method.
type MockClientStreamMockRecorder ¶
type MockClientStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockClientStreamMockRecorder is the mock recorder for MockClientStream.
func (*MockClientStreamMockRecorder) CloseSend ¶
func (mr *MockClientStreamMockRecorder) CloseSend() *gomock.Call
CloseSend indicates an expected call of CloseSend.
func (*MockClientStreamMockRecorder) Context ¶
func (mr *MockClientStreamMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockClientStreamMockRecorder) Header ¶
func (mr *MockClientStreamMockRecorder) Header() *gomock.Call
Header indicates an expected call of Header.
func (*MockClientStreamMockRecorder) RecvMsg ¶
func (mr *MockClientStreamMockRecorder) RecvMsg(arg0 interface{}) *gomock.Call
RecvMsg indicates an expected call of RecvMsg.
func (*MockClientStreamMockRecorder) SendMsg ¶
func (mr *MockClientStreamMockRecorder) SendMsg(arg0 interface{}) *gomock.Call
SendMsg indicates an expected call of SendMsg.
func (*MockClientStreamMockRecorder) Trailer ¶
func (mr *MockClientStreamMockRecorder) Trailer() *gomock.Call
Trailer indicates an expected call of Trailer.
type MockSubConn ¶
type MockSubConn struct { // The SubConn interface is added by a manual edit to // comply with the requirements in the SubConn interface // doc comment. balancer.SubConn // contains filtered or unexported fields }
MockSubConn is a mock of SubConn interface.
func NewMockSubConn ¶
func NewMockSubConn(ctrl *gomock.Controller) *MockSubConn
NewMockSubConn creates a new mock instance.
func (*MockSubConn) EXPECT ¶
func (m *MockSubConn) EXPECT() *MockSubConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubConn) GetOrBuildProducer ¶ added in v1.4.0
func (m *MockSubConn) GetOrBuildProducer(arg0 balancer.ProducerBuilder) (balancer.Producer, func())
GetOrBuildProducer mocks base method.
func (*MockSubConn) Shutdown ¶ added in v1.5.1
func (m *MockSubConn) Shutdown()
Shutdown mocks base method.
func (*MockSubConn) UpdateAddresses ¶
func (m *MockSubConn) UpdateAddresses(arg0 []resolver.Address)
UpdateAddresses mocks base method.
type MockSubConnMockRecorder ¶
type MockSubConnMockRecorder struct {
// contains filtered or unexported fields
}
MockSubConnMockRecorder is the mock recorder for MockSubConn.
func (*MockSubConnMockRecorder) Connect ¶
func (mr *MockSubConnMockRecorder) Connect() *gomock.Call
Connect indicates an expected call of Connect.
func (*MockSubConnMockRecorder) GetOrBuildProducer ¶ added in v1.4.0
func (mr *MockSubConnMockRecorder) GetOrBuildProducer(arg0 interface{}) *gomock.Call
GetOrBuildProducer indicates an expected call of GetOrBuildProducer.
func (*MockSubConnMockRecorder) Shutdown ¶ added in v1.5.1
func (mr *MockSubConnMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockSubConnMockRecorder) UpdateAddresses ¶
func (mr *MockSubConnMockRecorder) UpdateAddresses(arg0 interface{}) *gomock.Call
UpdateAddresses indicates an expected call of UpdateAddresses.