resolver

package
v1.26.2-121.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2024 License: MIT Imports: 2 Imported by: 8

Documentation

Overview

Package resolver is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServiceResolver

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

MockServiceResolver is a mock of ServiceResolver interface.

func NewMockServiceResolver

func NewMockServiceResolver(ctrl *gomock.Controller) *MockServiceResolver

NewMockServiceResolver creates a new mock instance.

func (*MockServiceResolver) EXPECT

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

func (*MockServiceResolver) Resolve

func (m *MockServiceResolver) Resolve(service string) []string

Resolve mocks base method.

type MockServiceResolverMockRecorder

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

MockServiceResolverMockRecorder is the mock recorder for MockServiceResolver.

func (*MockServiceResolverMockRecorder) Resolve

func (mr *MockServiceResolverMockRecorder) Resolve(service any) *gomock.Call

Resolve indicates an expected call of Resolve.

type NoopResolver

type NoopResolver struct {
}

func NewNoopResolver

func NewNoopResolver() *NoopResolver

func (*NoopResolver) Resolve

func (c *NoopResolver) Resolve(service string) []string

type ServiceResolver

type ServiceResolver interface {
	// Resolve implementation should return list of addresses for the service
	// (not necessary IP addresses but addresses that service dependency library accepts).
	Resolve(service string) []string
}

ServiceResolver interface can be implemented to support custom name resolving for any dependency service.

Jump to

Keyboard shortcuts

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