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 ¶
func (m *MockServiceResolver) EXPECT() *MockServiceResolverMockRecorder
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 interface{}) *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.
Click to show internal directories.
Click to hide internal directories.