Documentation ¶
Overview ¶
Package discovery is a generated GoMock package.
Index ¶
- type MockInstance
- type MockInstanceMockRecorder
- type MockResolver
- func (m *MockResolver) Diff(cacheKey string, prev, next discovery.Result) (discovery.Change, bool)
- func (m *MockResolver) EXPECT() *MockResolverMockRecorder
- func (m *MockResolver) Name() string
- func (m *MockResolver) Resolve(ctx context.Context, desc string) (discovery.Result, error)
- func (m *MockResolver) Target(ctx context.Context, target rpcinfo.EndpointInfo) string
- type MockResolverMockRecorder
- func (mr *MockResolverMockRecorder) Diff(cacheKey, prev, next interface{}) *gomock.Call
- func (mr *MockResolverMockRecorder) Name() *gomock.Call
- func (mr *MockResolverMockRecorder) Resolve(ctx, desc interface{}) *gomock.Call
- func (mr *MockResolverMockRecorder) Target(ctx, target interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockInstance ¶
type MockInstance struct {
// contains filtered or unexported fields
}
MockInstance is a mock of Instance interface.
func NewMockInstance ¶
func NewMockInstance(ctrl *gomock.Controller) *MockInstance
NewMockInstance creates a new mock instance.
func (*MockInstance) EXPECT ¶
func (m *MockInstance) EXPECT() *MockInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockInstanceMockRecorder ¶
type MockInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockInstanceMockRecorder is the mock recorder for MockInstance.
func (*MockInstanceMockRecorder) Address ¶
func (mr *MockInstanceMockRecorder) Address() *gomock.Call
Address indicates an expected call of Address.
func (*MockInstanceMockRecorder) Tag ¶
func (mr *MockInstanceMockRecorder) Tag(key interface{}) *gomock.Call
Tag indicates an expected call of Tag.
func (*MockInstanceMockRecorder) Weight ¶
func (mr *MockInstanceMockRecorder) Weight() *gomock.Call
Weight indicates an expected call of Weight.
type MockResolver ¶
type MockResolver struct {
// contains filtered or unexported fields
}
MockResolver is a mock of Resolver interface.
func NewMockResolver ¶
func NewMockResolver(ctrl *gomock.Controller) *MockResolver
NewMockResolver creates a new mock instance.
func (*MockResolver) EXPECT ¶
func (m *MockResolver) EXPECT() *MockResolverMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockResolver) Target ¶
func (m *MockResolver) Target(ctx context.Context, target rpcinfo.EndpointInfo) string
Target mocks base method.
type MockResolverMockRecorder ¶
type MockResolverMockRecorder struct {
// contains filtered or unexported fields
}
MockResolverMockRecorder is the mock recorder for MockResolver.
func (*MockResolverMockRecorder) Diff ¶
func (mr *MockResolverMockRecorder) Diff(cacheKey, prev, next interface{}) *gomock.Call
Diff indicates an expected call of Diff.
func (*MockResolverMockRecorder) Name ¶
func (mr *MockResolverMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockResolverMockRecorder) Resolve ¶
func (mr *MockResolverMockRecorder) Resolve(ctx, desc interface{}) *gomock.Call
Resolve indicates an expected call of Resolve.
func (*MockResolverMockRecorder) Target ¶
func (mr *MockResolverMockRecorder) Target(ctx, target interface{}) *gomock.Call
Target indicates an expected call of Target.