Documentation ¶
Overview ¶
Package mock_consul is a generated GoMock package.
Package mock_consul is a generated GoMock package.
Index ¶
- type MockConsulClient
- func (m *MockConsulClient) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
- func (m *MockConsulClient) DataCenters() ([]string, error)
- func (m *MockConsulClient) EXPECT() *MockConsulClientMockRecorder
- func (m *MockConsulClient) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
- func (m *MockConsulClient) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)
- type MockConsulClientMockRecorder
- func (mr *MockConsulClientMockRecorder) Connect(service, tag, q interface{}) *gomock.Call
- func (mr *MockConsulClientMockRecorder) DataCenters() *gomock.Call
- func (mr *MockConsulClientMockRecorder) Service(service, tag, q interface{}) *gomock.Call
- func (mr *MockConsulClientMockRecorder) Services(q interface{}) *gomock.Call
- type MockConsulWatcher
- func (m *MockConsulWatcher) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
- func (m *MockConsulWatcher) DataCenters() ([]string, error)
- func (m *MockConsulWatcher) EXPECT() *MockConsulWatcherMockRecorder
- func (m *MockConsulWatcher) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
- func (m *MockConsulWatcher) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)
- func (m *MockConsulWatcher) WatchServices(ctx context.Context, dataCenters []string) (<-chan []*consul.ServiceMeta, <-chan error)
- type MockConsulWatcherMockRecorder
- func (mr *MockConsulWatcherMockRecorder) Connect(service, tag, q interface{}) *gomock.Call
- func (mr *MockConsulWatcherMockRecorder) DataCenters() *gomock.Call
- func (mr *MockConsulWatcherMockRecorder) Service(service, tag, q interface{}) *gomock.Call
- func (mr *MockConsulWatcherMockRecorder) Services(q interface{}) *gomock.Call
- func (mr *MockConsulWatcherMockRecorder) WatchServices(ctx, dataCenters interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConsulClient ¶
type MockConsulClient struct {
// contains filtered or unexported fields
}
MockConsulClient is a mock of ConsulClient interface.
func NewMockConsulClient ¶
func NewMockConsulClient(ctrl *gomock.Controller) *MockConsulClient
NewMockConsulClient creates a new mock instance.
func (*MockConsulClient) Connect ¶
func (m *MockConsulClient) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
Connect mocks base method.
func (*MockConsulClient) DataCenters ¶
func (m *MockConsulClient) DataCenters() ([]string, error)
DataCenters mocks base method.
func (*MockConsulClient) EXPECT ¶
func (m *MockConsulClient) EXPECT() *MockConsulClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsulClient) Service ¶
func (m *MockConsulClient) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
Service mocks base method.
func (*MockConsulClient) Services ¶
func (m *MockConsulClient) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)
Services mocks base method.
type MockConsulClientMockRecorder ¶
type MockConsulClientMockRecorder struct {
// contains filtered or unexported fields
}
MockConsulClientMockRecorder is the mock recorder for MockConsulClient.
func (*MockConsulClientMockRecorder) Connect ¶
func (mr *MockConsulClientMockRecorder) Connect(service, tag, q interface{}) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockConsulClientMockRecorder) DataCenters ¶
func (mr *MockConsulClientMockRecorder) DataCenters() *gomock.Call
DataCenters indicates an expected call of DataCenters.
func (*MockConsulClientMockRecorder) Service ¶
func (mr *MockConsulClientMockRecorder) Service(service, tag, q interface{}) *gomock.Call
Service indicates an expected call of Service.
func (*MockConsulClientMockRecorder) Services ¶
func (mr *MockConsulClientMockRecorder) Services(q interface{}) *gomock.Call
Services indicates an expected call of Services.
type MockConsulWatcher ¶
type MockConsulWatcher struct {
// contains filtered or unexported fields
}
MockConsulWatcher is a mock of ConsulWatcher interface.
func NewMockConsulWatcher ¶
func NewMockConsulWatcher(ctrl *gomock.Controller) *MockConsulWatcher
NewMockConsulWatcher creates a new mock instance.
func (*MockConsulWatcher) Connect ¶
func (m *MockConsulWatcher) Connect(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
Connect mocks base method.
func (*MockConsulWatcher) DataCenters ¶
func (m *MockConsulWatcher) DataCenters() ([]string, error)
DataCenters mocks base method.
func (*MockConsulWatcher) EXPECT ¶
func (m *MockConsulWatcher) EXPECT() *MockConsulWatcherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsulWatcher) Service ¶
func (m *MockConsulWatcher) Service(service, tag string, q *api.QueryOptions) ([]*api.CatalogService, *api.QueryMeta, error)
Service mocks base method.
func (*MockConsulWatcher) Services ¶
func (m *MockConsulWatcher) Services(q *api.QueryOptions) (map[string][]string, *api.QueryMeta, error)
Services mocks base method.
func (*MockConsulWatcher) WatchServices ¶
func (m *MockConsulWatcher) WatchServices(ctx context.Context, dataCenters []string) (<-chan []*consul.ServiceMeta, <-chan error)
WatchServices mocks base method.
type MockConsulWatcherMockRecorder ¶
type MockConsulWatcherMockRecorder struct {
// contains filtered or unexported fields
}
MockConsulWatcherMockRecorder is the mock recorder for MockConsulWatcher.
func (*MockConsulWatcherMockRecorder) Connect ¶
func (mr *MockConsulWatcherMockRecorder) Connect(service, tag, q interface{}) *gomock.Call
Connect indicates an expected call of Connect.
func (*MockConsulWatcherMockRecorder) DataCenters ¶
func (mr *MockConsulWatcherMockRecorder) DataCenters() *gomock.Call
DataCenters indicates an expected call of DataCenters.
func (*MockConsulWatcherMockRecorder) Service ¶
func (mr *MockConsulWatcherMockRecorder) Service(service, tag, q interface{}) *gomock.Call
Service indicates an expected call of Service.
func (*MockConsulWatcherMockRecorder) Services ¶
func (mr *MockConsulWatcherMockRecorder) Services(q interface{}) *gomock.Call
Services indicates an expected call of Services.
func (*MockConsulWatcherMockRecorder) WatchServices ¶
func (mr *MockConsulWatcherMockRecorder) WatchServices(ctx, dataCenters interface{}) *gomock.Call
WatchServices indicates an expected call of WatchServices.