Documentation ¶
Index ¶
- type DNSServiceClient
- type DNSServiceClient_Expecter
- type DNSServiceClient_Query_Call
- func (_c *DNSServiceClient_Query_Call) Return(_a0 *pbdns.QueryResponse, _a1 error) *DNSServiceClient_Query_Call
- func (_c *DNSServiceClient_Query_Call) Run(run func(ctx context.Context, in *pbdns.QueryRequest, opts ...grpc.CallOption)) *DNSServiceClient_Query_Call
- func (_c *DNSServiceClient_Query_Call) RunAndReturn(...) *DNSServiceClient_Query_Call
- type DNSServiceServer
- type DNSServiceServer_Expecter
- type DNSServiceServer_Query_Call
- func (_c *DNSServiceServer_Query_Call) Return(_a0 *pbdns.QueryResponse, _a1 error) *DNSServiceServer_Query_Call
- func (_c *DNSServiceServer_Query_Call) Run(run func(_a0 context.Context, _a1 *pbdns.QueryRequest)) *DNSServiceServer_Query_Call
- func (_c *DNSServiceServer_Query_Call) RunAndReturn(run func(context.Context, *pbdns.QueryRequest) (*pbdns.QueryResponse, error)) *DNSServiceServer_Query_Call
- type UnsafeDNSServiceServer
- type UnsafeDNSServiceServer_Expecter
- type UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call
- func (_c *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) Return() *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call
- func (_c *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) Run(run func()) *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call
- func (_c *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) RunAndReturn(run func()) *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSServiceClient ¶
DNSServiceClient is an autogenerated mock type for the DNSServiceClient type
func NewDNSServiceClient ¶
func NewDNSServiceClient(t interface { mock.TestingT Cleanup(func()) }) *DNSServiceClient
NewDNSServiceClient creates a new instance of DNSServiceClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DNSServiceClient) EXPECT ¶
func (_m *DNSServiceClient) EXPECT() *DNSServiceClient_Expecter
func (*DNSServiceClient) Query ¶
func (_m *DNSServiceClient) Query(ctx context.Context, in *pbdns.QueryRequest, opts ...grpc.CallOption) (*pbdns.QueryResponse, error)
Query provides a mock function with given fields: ctx, in, opts
type DNSServiceClient_Expecter ¶
type DNSServiceClient_Expecter struct {
// contains filtered or unexported fields
}
func (*DNSServiceClient_Expecter) Query ¶
func (_e *DNSServiceClient_Expecter) Query(ctx interface{}, in interface{}, opts ...interface{}) *DNSServiceClient_Query_Call
Query is a helper method to define mock.On call
- ctx context.Context
- in *pbdns.QueryRequest
- opts ...grpc.CallOption
type DNSServiceClient_Query_Call ¶
DNSServiceClient_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*DNSServiceClient_Query_Call) Return ¶
func (_c *DNSServiceClient_Query_Call) Return(_a0 *pbdns.QueryResponse, _a1 error) *DNSServiceClient_Query_Call
func (*DNSServiceClient_Query_Call) Run ¶
func (_c *DNSServiceClient_Query_Call) Run(run func(ctx context.Context, in *pbdns.QueryRequest, opts ...grpc.CallOption)) *DNSServiceClient_Query_Call
func (*DNSServiceClient_Query_Call) RunAndReturn ¶
func (_c *DNSServiceClient_Query_Call) RunAndReturn(run func(context.Context, *pbdns.QueryRequest, ...grpc.CallOption) (*pbdns.QueryResponse, error)) *DNSServiceClient_Query_Call
type DNSServiceServer ¶
DNSServiceServer is an autogenerated mock type for the DNSServiceServer type
func NewDNSServiceServer ¶
func NewDNSServiceServer(t interface { mock.TestingT Cleanup(func()) }) *DNSServiceServer
NewDNSServiceServer creates a new instance of DNSServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*DNSServiceServer) EXPECT ¶
func (_m *DNSServiceServer) EXPECT() *DNSServiceServer_Expecter
func (*DNSServiceServer) Query ¶
func (_m *DNSServiceServer) Query(_a0 context.Context, _a1 *pbdns.QueryRequest) (*pbdns.QueryResponse, error)
Query provides a mock function with given fields: _a0, _a1
type DNSServiceServer_Expecter ¶
type DNSServiceServer_Expecter struct {
// contains filtered or unexported fields
}
func (*DNSServiceServer_Expecter) Query ¶
func (_e *DNSServiceServer_Expecter) Query(_a0 interface{}, _a1 interface{}) *DNSServiceServer_Query_Call
Query is a helper method to define mock.On call
- _a0 context.Context
- _a1 *pbdns.QueryRequest
type DNSServiceServer_Query_Call ¶
DNSServiceServer_Query_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Query'
func (*DNSServiceServer_Query_Call) Return ¶
func (_c *DNSServiceServer_Query_Call) Return(_a0 *pbdns.QueryResponse, _a1 error) *DNSServiceServer_Query_Call
func (*DNSServiceServer_Query_Call) Run ¶
func (_c *DNSServiceServer_Query_Call) Run(run func(_a0 context.Context, _a1 *pbdns.QueryRequest)) *DNSServiceServer_Query_Call
func (*DNSServiceServer_Query_Call) RunAndReturn ¶
func (_c *DNSServiceServer_Query_Call) RunAndReturn(run func(context.Context, *pbdns.QueryRequest) (*pbdns.QueryResponse, error)) *DNSServiceServer_Query_Call
type UnsafeDNSServiceServer ¶
UnsafeDNSServiceServer is an autogenerated mock type for the UnsafeDNSServiceServer type
func NewUnsafeDNSServiceServer ¶
func NewUnsafeDNSServiceServer(t interface { mock.TestingT Cleanup(func()) }) *UnsafeDNSServiceServer
NewUnsafeDNSServiceServer creates a new instance of UnsafeDNSServiceServer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*UnsafeDNSServiceServer) EXPECT ¶
func (_m *UnsafeDNSServiceServer) EXPECT() *UnsafeDNSServiceServer_Expecter
type UnsafeDNSServiceServer_Expecter ¶
type UnsafeDNSServiceServer_Expecter struct {
// contains filtered or unexported fields
}
type UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call ¶
UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedDNSServiceServer'
func (*UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) RunAndReturn ¶
func (_c *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call) RunAndReturn(run func()) *UnsafeDNSServiceServer_mustEmbedUnimplementedDNSServiceServer_Call