forked from mbobakov/grpc-consul-resolver
/
servicer.go
48 lines (40 loc) · 1.47 KB
/
servicer.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Code generated by MockGen. DO NOT EDIT.
// Source: consul.go
// Package mocks is a generated GoMock package.
package mocks
import (
gomock "github.com/golang/mock/gomock"
api "github.com/hashicorp/consul/api"
reflect "reflect"
)
// Mockservicer is a mock of servicer interface
type Mockservicer struct {
ctrl *gomock.Controller
recorder *MockservicerMockRecorder
}
// MockservicerMockRecorder is the mock recorder for Mockservicer
type MockservicerMockRecorder struct {
mock *Mockservicer
}
// NewMockservicer creates a new mock instance
func NewMockservicer(ctrl *gomock.Controller) *Mockservicer {
mock := &Mockservicer{ctrl: ctrl}
mock.recorder = &MockservicerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *Mockservicer) EXPECT() *MockservicerMockRecorder {
return m.recorder
}
// Service mocks base method
func (m *Mockservicer) Service(arg0, arg1 string, arg2 bool, arg3 *api.QueryOptions) ([]*api.ServiceEntry, *api.QueryMeta, error) {
ret := m.ctrl.Call(m, "Service", arg0, arg1, arg2, arg3)
ret0, _ := ret[0].([]*api.ServiceEntry)
ret1, _ := ret[1].(*api.QueryMeta)
ret2, _ := ret[2].(error)
return ret0, ret1, ret2
}
// Service indicates an expected call of Service
func (mr *MockservicerMockRecorder) Service(arg0, arg1, arg2, arg3 interface{}) *gomock.Call {
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Service", reflect.TypeOf((*Mockservicer)(nil).Service), arg0, arg1, arg2, arg3)
}