discovery

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package discovery is a generated GoMock package.

Index

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) Address

func (m *MockInstance) Address() net.Addr

Address mocks base method.

func (*MockInstance) EXPECT

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

func (*MockInstance) Tag

func (m *MockInstance) Tag(key string) (string, bool)

Tag mocks base method.

func (*MockInstance) Weight

func (m *MockInstance) Weight() int

Weight mocks base method.

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) Diff

func (m *MockResolver) Diff(cacheKey string, prev, next discovery.Result) (discovery.Change, bool)

Diff mocks base method.

func (*MockResolver) EXPECT

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

func (*MockResolver) Name

func (m *MockResolver) Name() string

Name mocks base method.

func (*MockResolver) Resolve

func (m *MockResolver) Resolve(ctx context.Context, desc string) (discovery.Result, error)

Resolve mocks base method.

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.

Jump to

Keyboard shortcuts

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