Documentation
¶
Index ¶
- type Grpc
- func (_m *Grpc) Client(ctx context.Context, name string) (*grpc.ClientConn, error)
- func (_m *Grpc) EXPECT() *Grpc_Expecter
- func (_m *Grpc) Run(host ...string) error
- func (_m *Grpc) Server() *grpc.Server
- func (_m *Grpc) UnaryClientInterceptorGroups(_a0 map[string][]grpc.UnaryClientInterceptor)
- func (_m *Grpc) UnaryServerInterceptors(_a0 []grpc.UnaryServerInterceptor)
- type Grpc_Client_Call
- type Grpc_Expecter
- func (_e *Grpc_Expecter) Client(ctx interface{}, name interface{}) *Grpc_Client_Call
- func (_e *Grpc_Expecter) Run(host ...interface{}) *Grpc_Run_Call
- func (_e *Grpc_Expecter) Server() *Grpc_Server_Call
- func (_e *Grpc_Expecter) UnaryClientInterceptorGroups(_a0 interface{}) *Grpc_UnaryClientInterceptorGroups_Call
- func (_e *Grpc_Expecter) UnaryServerInterceptors(_a0 interface{}) *Grpc_UnaryServerInterceptors_Call
- type Grpc_Run_Call
- type Grpc_Server_Call
- type Grpc_UnaryClientInterceptorGroups_Call
- func (_c *Grpc_UnaryClientInterceptorGroups_Call) Return() *Grpc_UnaryClientInterceptorGroups_Call
- func (_c *Grpc_UnaryClientInterceptorGroups_Call) Run(run func(_a0 map[string][]grpc.UnaryClientInterceptor)) *Grpc_UnaryClientInterceptorGroups_Call
- func (_c *Grpc_UnaryClientInterceptorGroups_Call) RunAndReturn(run func(map[string][]grpc.UnaryClientInterceptor)) *Grpc_UnaryClientInterceptorGroups_Call
- type Grpc_UnaryServerInterceptors_Call
- func (_c *Grpc_UnaryServerInterceptors_Call) Return() *Grpc_UnaryServerInterceptors_Call
- func (_c *Grpc_UnaryServerInterceptors_Call) Run(run func(_a0 []grpc.UnaryServerInterceptor)) *Grpc_UnaryServerInterceptors_Call
- func (_c *Grpc_UnaryServerInterceptors_Call) RunAndReturn(run func([]grpc.UnaryServerInterceptor)) *Grpc_UnaryServerInterceptors_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Grpc ¶
Grpc is an autogenerated mock type for the Grpc type
func NewGrpc ¶
NewGrpc creates a new instance of Grpc. 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 (*Grpc) EXPECT ¶
func (_m *Grpc) EXPECT() *Grpc_Expecter
func (*Grpc) UnaryClientInterceptorGroups ¶
func (_m *Grpc) UnaryClientInterceptorGroups(_a0 map[string][]grpc.UnaryClientInterceptor)
UnaryClientInterceptorGroups provides a mock function with given fields: _a0
func (*Grpc) UnaryServerInterceptors ¶
func (_m *Grpc) UnaryServerInterceptors(_a0 []grpc.UnaryServerInterceptor)
UnaryServerInterceptors provides a mock function with given fields: _a0
type Grpc_Client_Call ¶
Grpc_Client_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Client'
func (*Grpc_Client_Call) Return ¶
func (_c *Grpc_Client_Call) Return(_a0 *grpc.ClientConn, _a1 error) *Grpc_Client_Call
func (*Grpc_Client_Call) Run ¶
func (_c *Grpc_Client_Call) Run(run func(ctx context.Context, name string)) *Grpc_Client_Call
func (*Grpc_Client_Call) RunAndReturn ¶
func (_c *Grpc_Client_Call) RunAndReturn(run func(context.Context, string) (*grpc.ClientConn, error)) *Grpc_Client_Call
type Grpc_Expecter ¶
type Grpc_Expecter struct {
// contains filtered or unexported fields
}
func (*Grpc_Expecter) Client ¶
func (_e *Grpc_Expecter) Client(ctx interface{}, name interface{}) *Grpc_Client_Call
Client is a helper method to define mock.On call
- ctx context.Context
- name string
func (*Grpc_Expecter) Run ¶
func (_e *Grpc_Expecter) Run(host ...interface{}) *Grpc_Run_Call
Run is a helper method to define mock.On call
- host ...string
func (*Grpc_Expecter) Server ¶
func (_e *Grpc_Expecter) Server() *Grpc_Server_Call
Server is a helper method to define mock.On call
func (*Grpc_Expecter) UnaryClientInterceptorGroups ¶
func (_e *Grpc_Expecter) UnaryClientInterceptorGroups(_a0 interface{}) *Grpc_UnaryClientInterceptorGroups_Call
UnaryClientInterceptorGroups is a helper method to define mock.On call
- _a0 map[string][]grpc.UnaryClientInterceptor
func (*Grpc_Expecter) UnaryServerInterceptors ¶
func (_e *Grpc_Expecter) UnaryServerInterceptors(_a0 interface{}) *Grpc_UnaryServerInterceptors_Call
UnaryServerInterceptors is a helper method to define mock.On call
- _a0 []grpc.UnaryServerInterceptor
type Grpc_Run_Call ¶
Grpc_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*Grpc_Run_Call) Return ¶
func (_c *Grpc_Run_Call) Return(_a0 error) *Grpc_Run_Call
func (*Grpc_Run_Call) Run ¶
func (_c *Grpc_Run_Call) Run(run func(host ...string)) *Grpc_Run_Call
func (*Grpc_Run_Call) RunAndReturn ¶
func (_c *Grpc_Run_Call) RunAndReturn(run func(...string) error) *Grpc_Run_Call
type Grpc_Server_Call ¶
Grpc_Server_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Server'
func (*Grpc_Server_Call) Return ¶
func (_c *Grpc_Server_Call) Return(_a0 *grpc.Server) *Grpc_Server_Call
func (*Grpc_Server_Call) Run ¶
func (_c *Grpc_Server_Call) Run(run func()) *Grpc_Server_Call
func (*Grpc_Server_Call) RunAndReturn ¶
func (_c *Grpc_Server_Call) RunAndReturn(run func() *grpc.Server) *Grpc_Server_Call
type Grpc_UnaryClientInterceptorGroups_Call ¶
Grpc_UnaryClientInterceptorGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnaryClientInterceptorGroups'
func (*Grpc_UnaryClientInterceptorGroups_Call) Return ¶
func (_c *Grpc_UnaryClientInterceptorGroups_Call) Return() *Grpc_UnaryClientInterceptorGroups_Call
func (*Grpc_UnaryClientInterceptorGroups_Call) Run ¶
func (_c *Grpc_UnaryClientInterceptorGroups_Call) Run(run func(_a0 map[string][]grpc.UnaryClientInterceptor)) *Grpc_UnaryClientInterceptorGroups_Call
func (*Grpc_UnaryClientInterceptorGroups_Call) RunAndReturn ¶
func (_c *Grpc_UnaryClientInterceptorGroups_Call) RunAndReturn(run func(map[string][]grpc.UnaryClientInterceptor)) *Grpc_UnaryClientInterceptorGroups_Call
type Grpc_UnaryServerInterceptors_Call ¶
Grpc_UnaryServerInterceptors_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnaryServerInterceptors'
func (*Grpc_UnaryServerInterceptors_Call) Return ¶
func (_c *Grpc_UnaryServerInterceptors_Call) Return() *Grpc_UnaryServerInterceptors_Call
func (*Grpc_UnaryServerInterceptors_Call) Run ¶
func (_c *Grpc_UnaryServerInterceptors_Call) Run(run func(_a0 []grpc.UnaryServerInterceptor)) *Grpc_UnaryServerInterceptors_Call
func (*Grpc_UnaryServerInterceptors_Call) RunAndReturn ¶
func (_c *Grpc_UnaryServerInterceptors_Call) RunAndReturn(run func([]grpc.UnaryServerInterceptor)) *Grpc_UnaryServerInterceptors_Call