Documentation
¶
Index ¶
- type MockCrowAuthClient
- type MockCrowAuthClient_Auth_Call
- func (_c *MockCrowAuthClient_Auth_Call) Return(authResponse *proto.AuthResponse, err error) *MockCrowAuthClient_Auth_Call
- func (_c *MockCrowAuthClient_Auth_Call) Run(run func(ctx context.Context, in *proto.AuthRequest, opts ...grpc.CallOption)) *MockCrowAuthClient_Auth_Call
- func (_c *MockCrowAuthClient_Auth_Call) RunAndReturn(...) *MockCrowAuthClient_Auth_Call
- type MockCrowAuthClient_Expecter
- type MockCrowAuthServer
- type MockCrowAuthServer_Auth_Call
- func (_c *MockCrowAuthServer_Auth_Call) Return(authResponse *proto.AuthResponse, err error) *MockCrowAuthServer_Auth_Call
- func (_c *MockCrowAuthServer_Auth_Call) Run(run func(context1 context.Context, authRequest *proto.AuthRequest)) *MockCrowAuthServer_Auth_Call
- func (_c *MockCrowAuthServer_Auth_Call) RunAndReturn(...) *MockCrowAuthServer_Auth_Call
- type MockCrowAuthServer_Expecter
- type MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) Return() *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) Run(run func()) *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn(run func()) *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- type MockCrowClient
- func (_mock *MockCrowClient) Done(ctx context.Context, in *proto.DoneRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_m *MockCrowClient) EXPECT() *MockCrowClient_Expecter
- func (_mock *MockCrowClient) Extend(ctx context.Context, in *proto.ExtendRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) Init(ctx context.Context, in *proto.InitRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) Log(ctx context.Context, in *proto.LogRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) Next(ctx context.Context, in *proto.NextRequest, opts ...grpc.CallOption) (*proto.NextResponse, error)
- func (_mock *MockCrowClient) RegisterAgent(ctx context.Context, in *proto.RegisterAgentRequest, opts ...grpc.CallOption) (*proto.RegisterAgentResponse, error)
- func (_mock *MockCrowClient) ReportHealth(ctx context.Context, in *proto.ReportHealthRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) UnregisterAgent(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) Update(ctx context.Context, in *proto.UpdateRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- func (_mock *MockCrowClient) Version(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.VersionResponse, error)
- func (_mock *MockCrowClient) Wait(ctx context.Context, in *proto.WaitRequest, opts ...grpc.CallOption) (*proto.Empty, error)
- type MockCrowClient_Done_Call
- func (_c *MockCrowClient_Done_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Done_Call
- func (_c *MockCrowClient_Done_Call) Run(run func(ctx context.Context, in *proto.DoneRequest, opts ...grpc.CallOption)) *MockCrowClient_Done_Call
- func (_c *MockCrowClient_Done_Call) RunAndReturn(...) *MockCrowClient_Done_Call
- type MockCrowClient_Expecter
- func (_e *MockCrowClient_Expecter) Done(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Done_Call
- func (_e *MockCrowClient_Expecter) Extend(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Extend_Call
- func (_e *MockCrowClient_Expecter) Init(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Init_Call
- func (_e *MockCrowClient_Expecter) Log(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Log_Call
- func (_e *MockCrowClient_Expecter) Next(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Next_Call
- func (_e *MockCrowClient_Expecter) RegisterAgent(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_RegisterAgent_Call
- func (_e *MockCrowClient_Expecter) ReportHealth(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_ReportHealth_Call
- func (_e *MockCrowClient_Expecter) UnregisterAgent(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_UnregisterAgent_Call
- func (_e *MockCrowClient_Expecter) Update(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Update_Call
- func (_e *MockCrowClient_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Version_Call
- func (_e *MockCrowClient_Expecter) Wait(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Wait_Call
- type MockCrowClient_Extend_Call
- type MockCrowClient_Init_Call
- func (_c *MockCrowClient_Init_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Init_Call
- func (_c *MockCrowClient_Init_Call) Run(run func(ctx context.Context, in *proto.InitRequest, opts ...grpc.CallOption)) *MockCrowClient_Init_Call
- func (_c *MockCrowClient_Init_Call) RunAndReturn(...) *MockCrowClient_Init_Call
- type MockCrowClient_Log_Call
- func (_c *MockCrowClient_Log_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Log_Call
- func (_c *MockCrowClient_Log_Call) Run(run func(ctx context.Context, in *proto.LogRequest, opts ...grpc.CallOption)) *MockCrowClient_Log_Call
- func (_c *MockCrowClient_Log_Call) RunAndReturn(...) *MockCrowClient_Log_Call
- type MockCrowClient_Next_Call
- func (_c *MockCrowClient_Next_Call) Return(nextResponse *proto.NextResponse, err error) *MockCrowClient_Next_Call
- func (_c *MockCrowClient_Next_Call) Run(run func(ctx context.Context, in *proto.NextRequest, opts ...grpc.CallOption)) *MockCrowClient_Next_Call
- func (_c *MockCrowClient_Next_Call) RunAndReturn(...) *MockCrowClient_Next_Call
- type MockCrowClient_RegisterAgent_Call
- func (_c *MockCrowClient_RegisterAgent_Call) Return(registerAgentResponse *proto.RegisterAgentResponse, err error) *MockCrowClient_RegisterAgent_Call
- func (_c *MockCrowClient_RegisterAgent_Call) Run(...) *MockCrowClient_RegisterAgent_Call
- func (_c *MockCrowClient_RegisterAgent_Call) RunAndReturn(...) *MockCrowClient_RegisterAgent_Call
- type MockCrowClient_ReportHealth_Call
- type MockCrowClient_UnregisterAgent_Call
- func (_c *MockCrowClient_UnregisterAgent_Call) Return(empty *proto.Empty, err error) *MockCrowClient_UnregisterAgent_Call
- func (_c *MockCrowClient_UnregisterAgent_Call) Run(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption)) *MockCrowClient_UnregisterAgent_Call
- func (_c *MockCrowClient_UnregisterAgent_Call) RunAndReturn(...) *MockCrowClient_UnregisterAgent_Call
- type MockCrowClient_Update_Call
- type MockCrowClient_Version_Call
- func (_c *MockCrowClient_Version_Call) Return(versionResponse *proto.VersionResponse, err error) *MockCrowClient_Version_Call
- func (_c *MockCrowClient_Version_Call) Run(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption)) *MockCrowClient_Version_Call
- func (_c *MockCrowClient_Version_Call) RunAndReturn(...) *MockCrowClient_Version_Call
- type MockCrowClient_Wait_Call
- func (_c *MockCrowClient_Wait_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Wait_Call
- func (_c *MockCrowClient_Wait_Call) Run(run func(ctx context.Context, in *proto.WaitRequest, opts ...grpc.CallOption)) *MockCrowClient_Wait_Call
- func (_c *MockCrowClient_Wait_Call) RunAndReturn(...) *MockCrowClient_Wait_Call
- type MockCrowServer
- func (_mock *MockCrowServer) Done(context1 context.Context, doneRequest *proto.DoneRequest) (*proto.Empty, error)
- func (_m *MockCrowServer) EXPECT() *MockCrowServer_Expecter
- func (_mock *MockCrowServer) Extend(context1 context.Context, extendRequest *proto.ExtendRequest) (*proto.Empty, error)
- func (_mock *MockCrowServer) Init(context1 context.Context, initRequest *proto.InitRequest) (*proto.Empty, error)
- func (_mock *MockCrowServer) Log(context1 context.Context, logRequest *proto.LogRequest) (*proto.Empty, error)
- func (_mock *MockCrowServer) Next(context1 context.Context, nextRequest *proto.NextRequest) (*proto.NextResponse, error)
- func (_mock *MockCrowServer) RegisterAgent(context1 context.Context, registerAgentRequest *proto.RegisterAgentRequest) (*proto.RegisterAgentResponse, error)
- func (_mock *MockCrowServer) ReportHealth(context1 context.Context, reportHealthRequest *proto.ReportHealthRequest) (*proto.Empty, error)
- func (_mock *MockCrowServer) UnregisterAgent(context1 context.Context, empty *proto.Empty) (*proto.Empty, error)
- func (_mock *MockCrowServer) Update(context1 context.Context, updateRequest *proto.UpdateRequest) (*proto.Empty, error)
- func (_mock *MockCrowServer) Version(context1 context.Context, empty *proto.Empty) (*proto.VersionResponse, error)
- func (_mock *MockCrowServer) Wait(context1 context.Context, waitRequest *proto.WaitRequest) (*proto.Empty, error)
- type MockCrowServer_Done_Call
- func (_c *MockCrowServer_Done_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Done_Call
- func (_c *MockCrowServer_Done_Call) Run(run func(context1 context.Context, doneRequest *proto.DoneRequest)) *MockCrowServer_Done_Call
- func (_c *MockCrowServer_Done_Call) RunAndReturn(...) *MockCrowServer_Done_Call
- type MockCrowServer_Expecter
- func (_e *MockCrowServer_Expecter) Done(context1 interface{}, doneRequest interface{}) *MockCrowServer_Done_Call
- func (_e *MockCrowServer_Expecter) Extend(context1 interface{}, extendRequest interface{}) *MockCrowServer_Extend_Call
- func (_e *MockCrowServer_Expecter) Init(context1 interface{}, initRequest interface{}) *MockCrowServer_Init_Call
- func (_e *MockCrowServer_Expecter) Log(context1 interface{}, logRequest interface{}) *MockCrowServer_Log_Call
- func (_e *MockCrowServer_Expecter) Next(context1 interface{}, nextRequest interface{}) *MockCrowServer_Next_Call
- func (_e *MockCrowServer_Expecter) RegisterAgent(context1 interface{}, registerAgentRequest interface{}) *MockCrowServer_RegisterAgent_Call
- func (_e *MockCrowServer_Expecter) ReportHealth(context1 interface{}, reportHealthRequest interface{}) *MockCrowServer_ReportHealth_Call
- func (_e *MockCrowServer_Expecter) UnregisterAgent(context1 interface{}, empty interface{}) *MockCrowServer_UnregisterAgent_Call
- func (_e *MockCrowServer_Expecter) Update(context1 interface{}, updateRequest interface{}) *MockCrowServer_Update_Call
- func (_e *MockCrowServer_Expecter) Version(context1 interface{}, empty interface{}) *MockCrowServer_Version_Call
- func (_e *MockCrowServer_Expecter) Wait(context1 interface{}, waitRequest interface{}) *MockCrowServer_Wait_Call
- type MockCrowServer_Extend_Call
- func (_c *MockCrowServer_Extend_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Extend_Call
- func (_c *MockCrowServer_Extend_Call) Run(run func(context1 context.Context, extendRequest *proto.ExtendRequest)) *MockCrowServer_Extend_Call
- func (_c *MockCrowServer_Extend_Call) RunAndReturn(...) *MockCrowServer_Extend_Call
- type MockCrowServer_Init_Call
- func (_c *MockCrowServer_Init_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Init_Call
- func (_c *MockCrowServer_Init_Call) Run(run func(context1 context.Context, initRequest *proto.InitRequest)) *MockCrowServer_Init_Call
- func (_c *MockCrowServer_Init_Call) RunAndReturn(...) *MockCrowServer_Init_Call
- type MockCrowServer_Log_Call
- func (_c *MockCrowServer_Log_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Log_Call
- func (_c *MockCrowServer_Log_Call) Run(run func(context1 context.Context, logRequest *proto.LogRequest)) *MockCrowServer_Log_Call
- func (_c *MockCrowServer_Log_Call) RunAndReturn(...) *MockCrowServer_Log_Call
- type MockCrowServer_Next_Call
- func (_c *MockCrowServer_Next_Call) Return(nextResponse *proto.NextResponse, err error) *MockCrowServer_Next_Call
- func (_c *MockCrowServer_Next_Call) Run(run func(context1 context.Context, nextRequest *proto.NextRequest)) *MockCrowServer_Next_Call
- func (_c *MockCrowServer_Next_Call) RunAndReturn(...) *MockCrowServer_Next_Call
- type MockCrowServer_RegisterAgent_Call
- func (_c *MockCrowServer_RegisterAgent_Call) Return(registerAgentResponse *proto.RegisterAgentResponse, err error) *MockCrowServer_RegisterAgent_Call
- func (_c *MockCrowServer_RegisterAgent_Call) Run(...) *MockCrowServer_RegisterAgent_Call
- func (_c *MockCrowServer_RegisterAgent_Call) RunAndReturn(...) *MockCrowServer_RegisterAgent_Call
- type MockCrowServer_ReportHealth_Call
- type MockCrowServer_UnregisterAgent_Call
- func (_c *MockCrowServer_UnregisterAgent_Call) Return(empty1 *proto.Empty, err error) *MockCrowServer_UnregisterAgent_Call
- func (_c *MockCrowServer_UnregisterAgent_Call) Run(run func(context1 context.Context, empty *proto.Empty)) *MockCrowServer_UnregisterAgent_Call
- func (_c *MockCrowServer_UnregisterAgent_Call) RunAndReturn(run func(context1 context.Context, empty *proto.Empty) (*proto.Empty, error)) *MockCrowServer_UnregisterAgent_Call
- type MockCrowServer_Update_Call
- func (_c *MockCrowServer_Update_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Update_Call
- func (_c *MockCrowServer_Update_Call) Run(run func(context1 context.Context, updateRequest *proto.UpdateRequest)) *MockCrowServer_Update_Call
- func (_c *MockCrowServer_Update_Call) RunAndReturn(...) *MockCrowServer_Update_Call
- type MockCrowServer_Version_Call
- func (_c *MockCrowServer_Version_Call) Return(versionResponse *proto.VersionResponse, err error) *MockCrowServer_Version_Call
- func (_c *MockCrowServer_Version_Call) Run(run func(context1 context.Context, empty *proto.Empty)) *MockCrowServer_Version_Call
- func (_c *MockCrowServer_Version_Call) RunAndReturn(...) *MockCrowServer_Version_Call
- type MockCrowServer_Wait_Call
- func (_c *MockCrowServer_Wait_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Wait_Call
- func (_c *MockCrowServer_Wait_Call) Run(run func(context1 context.Context, waitRequest *proto.WaitRequest)) *MockCrowServer_Wait_Call
- func (_c *MockCrowServer_Wait_Call) RunAndReturn(...) *MockCrowServer_Wait_Call
- type MockCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockCrowServer_mustEmbedUnimplementedCrowServer_Call) Return() *MockCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockCrowServer_mustEmbedUnimplementedCrowServer_Call) Run(run func()) *MockCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn(run func()) *MockCrowServer_mustEmbedUnimplementedCrowServer_Call
- type MockUnsafeCrowAuthServer
- type MockUnsafeCrowAuthServer_Expecter
- type MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) Return() *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) Run(run func()) *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- func (_c *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn(run func()) *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
- type MockUnsafeCrowServer
- type MockUnsafeCrowServer_Expecter
- type MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) Return() *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) Run(run func()) *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call
- func (_c *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn(run func()) *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCrowAuthClient ¶
MockCrowAuthClient is an autogenerated mock type for the CrowAuthClient type
func NewMockCrowAuthClient ¶
func NewMockCrowAuthClient(t interface { mock.TestingT Cleanup(func()) }) *MockCrowAuthClient
NewMockCrowAuthClient creates a new instance of MockCrowAuthClient. 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 (*MockCrowAuthClient) Auth ¶
func (_mock *MockCrowAuthClient) Auth(ctx context.Context, in *proto.AuthRequest, opts ...grpc.CallOption) (*proto.AuthResponse, error)
Auth provides a mock function for the type MockCrowAuthClient
func (*MockCrowAuthClient) EXPECT ¶
func (_m *MockCrowAuthClient) EXPECT() *MockCrowAuthClient_Expecter
type MockCrowAuthClient_Auth_Call ¶
MockCrowAuthClient_Auth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Auth'
func (*MockCrowAuthClient_Auth_Call) Return ¶
func (_c *MockCrowAuthClient_Auth_Call) Return(authResponse *proto.AuthResponse, err error) *MockCrowAuthClient_Auth_Call
func (*MockCrowAuthClient_Auth_Call) Run ¶
func (_c *MockCrowAuthClient_Auth_Call) Run(run func(ctx context.Context, in *proto.AuthRequest, opts ...grpc.CallOption)) *MockCrowAuthClient_Auth_Call
func (*MockCrowAuthClient_Auth_Call) RunAndReturn ¶
func (_c *MockCrowAuthClient_Auth_Call) RunAndReturn(run func(ctx context.Context, in *proto.AuthRequest, opts ...grpc.CallOption) (*proto.AuthResponse, error)) *MockCrowAuthClient_Auth_Call
type MockCrowAuthClient_Expecter ¶
type MockCrowAuthClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCrowAuthClient_Expecter) Auth ¶
func (_e *MockCrowAuthClient_Expecter) Auth(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowAuthClient_Auth_Call
Auth is a helper method to define mock.On call
- ctx
- in
- opts
type MockCrowAuthServer ¶
MockCrowAuthServer is an autogenerated mock type for the CrowAuthServer type
func NewMockCrowAuthServer ¶
func NewMockCrowAuthServer(t interface { mock.TestingT Cleanup(func()) }) *MockCrowAuthServer
NewMockCrowAuthServer creates a new instance of MockCrowAuthServer. 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 (*MockCrowAuthServer) Auth ¶
func (_mock *MockCrowAuthServer) Auth(context1 context.Context, authRequest *proto.AuthRequest) (*proto.AuthResponse, error)
Auth provides a mock function for the type MockCrowAuthServer
func (*MockCrowAuthServer) EXPECT ¶
func (_m *MockCrowAuthServer) EXPECT() *MockCrowAuthServer_Expecter
type MockCrowAuthServer_Auth_Call ¶
MockCrowAuthServer_Auth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Auth'
func (*MockCrowAuthServer_Auth_Call) Return ¶
func (_c *MockCrowAuthServer_Auth_Call) Return(authResponse *proto.AuthResponse, err error) *MockCrowAuthServer_Auth_Call
func (*MockCrowAuthServer_Auth_Call) Run ¶
func (_c *MockCrowAuthServer_Auth_Call) Run(run func(context1 context.Context, authRequest *proto.AuthRequest)) *MockCrowAuthServer_Auth_Call
func (*MockCrowAuthServer_Auth_Call) RunAndReturn ¶
func (_c *MockCrowAuthServer_Auth_Call) RunAndReturn(run func(context1 context.Context, authRequest *proto.AuthRequest) (*proto.AuthResponse, error)) *MockCrowAuthServer_Auth_Call
type MockCrowAuthServer_Expecter ¶
type MockCrowAuthServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCrowAuthServer_Expecter) Auth ¶
func (_e *MockCrowAuthServer_Expecter) Auth(context1 interface{}, authRequest interface{}) *MockCrowAuthServer_Auth_Call
Auth is a helper method to define mock.On call
- context1
- authRequest
type MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call ¶
MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCrowAuthServer'
func (*MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn ¶
func (_c *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn(run func()) *MockCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
type MockCrowClient ¶
MockCrowClient is an autogenerated mock type for the CrowClient type
func NewMockCrowClient ¶
func NewMockCrowClient(t interface { mock.TestingT Cleanup(func()) }) *MockCrowClient
NewMockCrowClient creates a new instance of MockCrowClient. 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 (*MockCrowClient) Done ¶
func (_mock *MockCrowClient) Done(ctx context.Context, in *proto.DoneRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Done provides a mock function for the type MockCrowClient
func (*MockCrowClient) EXPECT ¶
func (_m *MockCrowClient) EXPECT() *MockCrowClient_Expecter
func (*MockCrowClient) Extend ¶
func (_mock *MockCrowClient) Extend(ctx context.Context, in *proto.ExtendRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Extend provides a mock function for the type MockCrowClient
func (*MockCrowClient) Init ¶
func (_mock *MockCrowClient) Init(ctx context.Context, in *proto.InitRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Init provides a mock function for the type MockCrowClient
func (*MockCrowClient) Log ¶
func (_mock *MockCrowClient) Log(ctx context.Context, in *proto.LogRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Log provides a mock function for the type MockCrowClient
func (*MockCrowClient) Next ¶
func (_mock *MockCrowClient) Next(ctx context.Context, in *proto.NextRequest, opts ...grpc.CallOption) (*proto.NextResponse, error)
Next provides a mock function for the type MockCrowClient
func (*MockCrowClient) RegisterAgent ¶
func (_mock *MockCrowClient) RegisterAgent(ctx context.Context, in *proto.RegisterAgentRequest, opts ...grpc.CallOption) (*proto.RegisterAgentResponse, error)
RegisterAgent provides a mock function for the type MockCrowClient
func (*MockCrowClient) ReportHealth ¶
func (_mock *MockCrowClient) ReportHealth(ctx context.Context, in *proto.ReportHealthRequest, opts ...grpc.CallOption) (*proto.Empty, error)
ReportHealth provides a mock function for the type MockCrowClient
func (*MockCrowClient) UnregisterAgent ¶
func (_mock *MockCrowClient) UnregisterAgent(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.Empty, error)
UnregisterAgent provides a mock function for the type MockCrowClient
func (*MockCrowClient) Update ¶
func (_mock *MockCrowClient) Update(ctx context.Context, in *proto.UpdateRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Update provides a mock function for the type MockCrowClient
func (*MockCrowClient) Version ¶
func (_mock *MockCrowClient) Version(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.VersionResponse, error)
Version provides a mock function for the type MockCrowClient
func (*MockCrowClient) Wait ¶
func (_mock *MockCrowClient) Wait(ctx context.Context, in *proto.WaitRequest, opts ...grpc.CallOption) (*proto.Empty, error)
Wait provides a mock function for the type MockCrowClient
type MockCrowClient_Done_Call ¶
MockCrowClient_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*MockCrowClient_Done_Call) Return ¶
func (_c *MockCrowClient_Done_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Done_Call
func (*MockCrowClient_Done_Call) Run ¶
func (_c *MockCrowClient_Done_Call) Run(run func(ctx context.Context, in *proto.DoneRequest, opts ...grpc.CallOption)) *MockCrowClient_Done_Call
func (*MockCrowClient_Done_Call) RunAndReturn ¶
func (_c *MockCrowClient_Done_Call) RunAndReturn(run func(ctx context.Context, in *proto.DoneRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Done_Call
type MockCrowClient_Expecter ¶
type MockCrowClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCrowClient_Expecter) Done ¶
func (_e *MockCrowClient_Expecter) Done(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Done_Call
Done is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Extend ¶
func (_e *MockCrowClient_Expecter) Extend(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Extend_Call
Extend is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Init ¶
func (_e *MockCrowClient_Expecter) Init(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Init_Call
Init is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Log ¶
func (_e *MockCrowClient_Expecter) Log(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Log_Call
Log is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Next ¶
func (_e *MockCrowClient_Expecter) Next(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Next_Call
Next is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) RegisterAgent ¶
func (_e *MockCrowClient_Expecter) RegisterAgent(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_RegisterAgent_Call
RegisterAgent is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) ReportHealth ¶
func (_e *MockCrowClient_Expecter) ReportHealth(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_ReportHealth_Call
ReportHealth is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) UnregisterAgent ¶
func (_e *MockCrowClient_Expecter) UnregisterAgent(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_UnregisterAgent_Call
UnregisterAgent is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Update ¶
func (_e *MockCrowClient_Expecter) Update(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Update_Call
Update is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Version ¶
func (_e *MockCrowClient_Expecter) Version(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Version_Call
Version is a helper method to define mock.On call
- ctx
- in
- opts
func (*MockCrowClient_Expecter) Wait ¶
func (_e *MockCrowClient_Expecter) Wait(ctx interface{}, in interface{}, opts ...interface{}) *MockCrowClient_Wait_Call
Wait is a helper method to define mock.On call
- ctx
- in
- opts
type MockCrowClient_Extend_Call ¶
MockCrowClient_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*MockCrowClient_Extend_Call) Return ¶
func (_c *MockCrowClient_Extend_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Extend_Call
func (*MockCrowClient_Extend_Call) Run ¶
func (_c *MockCrowClient_Extend_Call) Run(run func(ctx context.Context, in *proto.ExtendRequest, opts ...grpc.CallOption)) *MockCrowClient_Extend_Call
func (*MockCrowClient_Extend_Call) RunAndReturn ¶
func (_c *MockCrowClient_Extend_Call) RunAndReturn(run func(ctx context.Context, in *proto.ExtendRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Extend_Call
type MockCrowClient_Init_Call ¶
MockCrowClient_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*MockCrowClient_Init_Call) Return ¶
func (_c *MockCrowClient_Init_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Init_Call
func (*MockCrowClient_Init_Call) Run ¶
func (_c *MockCrowClient_Init_Call) Run(run func(ctx context.Context, in *proto.InitRequest, opts ...grpc.CallOption)) *MockCrowClient_Init_Call
func (*MockCrowClient_Init_Call) RunAndReturn ¶
func (_c *MockCrowClient_Init_Call) RunAndReturn(run func(ctx context.Context, in *proto.InitRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Init_Call
type MockCrowClient_Log_Call ¶
MockCrowClient_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*MockCrowClient_Log_Call) Return ¶
func (_c *MockCrowClient_Log_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Log_Call
func (*MockCrowClient_Log_Call) Run ¶
func (_c *MockCrowClient_Log_Call) Run(run func(ctx context.Context, in *proto.LogRequest, opts ...grpc.CallOption)) *MockCrowClient_Log_Call
func (*MockCrowClient_Log_Call) RunAndReturn ¶
func (_c *MockCrowClient_Log_Call) RunAndReturn(run func(ctx context.Context, in *proto.LogRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Log_Call
type MockCrowClient_Next_Call ¶
MockCrowClient_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*MockCrowClient_Next_Call) Return ¶
func (_c *MockCrowClient_Next_Call) Return(nextResponse *proto.NextResponse, err error) *MockCrowClient_Next_Call
func (*MockCrowClient_Next_Call) Run ¶
func (_c *MockCrowClient_Next_Call) Run(run func(ctx context.Context, in *proto.NextRequest, opts ...grpc.CallOption)) *MockCrowClient_Next_Call
func (*MockCrowClient_Next_Call) RunAndReturn ¶
func (_c *MockCrowClient_Next_Call) RunAndReturn(run func(ctx context.Context, in *proto.NextRequest, opts ...grpc.CallOption) (*proto.NextResponse, error)) *MockCrowClient_Next_Call
type MockCrowClient_RegisterAgent_Call ¶
MockCrowClient_RegisterAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterAgent'
func (*MockCrowClient_RegisterAgent_Call) Return ¶
func (_c *MockCrowClient_RegisterAgent_Call) Return(registerAgentResponse *proto.RegisterAgentResponse, err error) *MockCrowClient_RegisterAgent_Call
func (*MockCrowClient_RegisterAgent_Call) Run ¶
func (_c *MockCrowClient_RegisterAgent_Call) Run(run func(ctx context.Context, in *proto.RegisterAgentRequest, opts ...grpc.CallOption)) *MockCrowClient_RegisterAgent_Call
func (*MockCrowClient_RegisterAgent_Call) RunAndReturn ¶
func (_c *MockCrowClient_RegisterAgent_Call) RunAndReturn(run func(ctx context.Context, in *proto.RegisterAgentRequest, opts ...grpc.CallOption) (*proto.RegisterAgentResponse, error)) *MockCrowClient_RegisterAgent_Call
type MockCrowClient_ReportHealth_Call ¶
MockCrowClient_ReportHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportHealth'
func (*MockCrowClient_ReportHealth_Call) Return ¶
func (_c *MockCrowClient_ReportHealth_Call) Return(empty *proto.Empty, err error) *MockCrowClient_ReportHealth_Call
func (*MockCrowClient_ReportHealth_Call) Run ¶
func (_c *MockCrowClient_ReportHealth_Call) Run(run func(ctx context.Context, in *proto.ReportHealthRequest, opts ...grpc.CallOption)) *MockCrowClient_ReportHealth_Call
func (*MockCrowClient_ReportHealth_Call) RunAndReturn ¶
func (_c *MockCrowClient_ReportHealth_Call) RunAndReturn(run func(ctx context.Context, in *proto.ReportHealthRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_ReportHealth_Call
type MockCrowClient_UnregisterAgent_Call ¶
MockCrowClient_UnregisterAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterAgent'
func (*MockCrowClient_UnregisterAgent_Call) Return ¶
func (_c *MockCrowClient_UnregisterAgent_Call) Return(empty *proto.Empty, err error) *MockCrowClient_UnregisterAgent_Call
func (*MockCrowClient_UnregisterAgent_Call) Run ¶
func (_c *MockCrowClient_UnregisterAgent_Call) Run(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption)) *MockCrowClient_UnregisterAgent_Call
func (*MockCrowClient_UnregisterAgent_Call) RunAndReturn ¶
func (_c *MockCrowClient_UnregisterAgent_Call) RunAndReturn(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_UnregisterAgent_Call
type MockCrowClient_Update_Call ¶
MockCrowClient_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockCrowClient_Update_Call) Return ¶
func (_c *MockCrowClient_Update_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Update_Call
func (*MockCrowClient_Update_Call) Run ¶
func (_c *MockCrowClient_Update_Call) Run(run func(ctx context.Context, in *proto.UpdateRequest, opts ...grpc.CallOption)) *MockCrowClient_Update_Call
func (*MockCrowClient_Update_Call) RunAndReturn ¶
func (_c *MockCrowClient_Update_Call) RunAndReturn(run func(ctx context.Context, in *proto.UpdateRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Update_Call
type MockCrowClient_Version_Call ¶
MockCrowClient_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'
func (*MockCrowClient_Version_Call) Return ¶
func (_c *MockCrowClient_Version_Call) Return(versionResponse *proto.VersionResponse, err error) *MockCrowClient_Version_Call
func (*MockCrowClient_Version_Call) Run ¶
func (_c *MockCrowClient_Version_Call) Run(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption)) *MockCrowClient_Version_Call
func (*MockCrowClient_Version_Call) RunAndReturn ¶
func (_c *MockCrowClient_Version_Call) RunAndReturn(run func(ctx context.Context, in *proto.Empty, opts ...grpc.CallOption) (*proto.VersionResponse, error)) *MockCrowClient_Version_Call
type MockCrowClient_Wait_Call ¶
MockCrowClient_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*MockCrowClient_Wait_Call) Return ¶
func (_c *MockCrowClient_Wait_Call) Return(empty *proto.Empty, err error) *MockCrowClient_Wait_Call
func (*MockCrowClient_Wait_Call) Run ¶
func (_c *MockCrowClient_Wait_Call) Run(run func(ctx context.Context, in *proto.WaitRequest, opts ...grpc.CallOption)) *MockCrowClient_Wait_Call
func (*MockCrowClient_Wait_Call) RunAndReturn ¶
func (_c *MockCrowClient_Wait_Call) RunAndReturn(run func(ctx context.Context, in *proto.WaitRequest, opts ...grpc.CallOption) (*proto.Empty, error)) *MockCrowClient_Wait_Call
type MockCrowServer ¶
MockCrowServer is an autogenerated mock type for the CrowServer type
func NewMockCrowServer ¶
func NewMockCrowServer(t interface { mock.TestingT Cleanup(func()) }) *MockCrowServer
NewMockCrowServer creates a new instance of MockCrowServer. 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 (*MockCrowServer) Done ¶
func (_mock *MockCrowServer) Done(context1 context.Context, doneRequest *proto.DoneRequest) (*proto.Empty, error)
Done provides a mock function for the type MockCrowServer
func (*MockCrowServer) EXPECT ¶
func (_m *MockCrowServer) EXPECT() *MockCrowServer_Expecter
func (*MockCrowServer) Extend ¶
func (_mock *MockCrowServer) Extend(context1 context.Context, extendRequest *proto.ExtendRequest) (*proto.Empty, error)
Extend provides a mock function for the type MockCrowServer
func (*MockCrowServer) Init ¶
func (_mock *MockCrowServer) Init(context1 context.Context, initRequest *proto.InitRequest) (*proto.Empty, error)
Init provides a mock function for the type MockCrowServer
func (*MockCrowServer) Log ¶
func (_mock *MockCrowServer) Log(context1 context.Context, logRequest *proto.LogRequest) (*proto.Empty, error)
Log provides a mock function for the type MockCrowServer
func (*MockCrowServer) Next ¶
func (_mock *MockCrowServer) Next(context1 context.Context, nextRequest *proto.NextRequest) (*proto.NextResponse, error)
Next provides a mock function for the type MockCrowServer
func (*MockCrowServer) RegisterAgent ¶
func (_mock *MockCrowServer) RegisterAgent(context1 context.Context, registerAgentRequest *proto.RegisterAgentRequest) (*proto.RegisterAgentResponse, error)
RegisterAgent provides a mock function for the type MockCrowServer
func (*MockCrowServer) ReportHealth ¶
func (_mock *MockCrowServer) ReportHealth(context1 context.Context, reportHealthRequest *proto.ReportHealthRequest) (*proto.Empty, error)
ReportHealth provides a mock function for the type MockCrowServer
func (*MockCrowServer) UnregisterAgent ¶
func (_mock *MockCrowServer) UnregisterAgent(context1 context.Context, empty *proto.Empty) (*proto.Empty, error)
UnregisterAgent provides a mock function for the type MockCrowServer
func (*MockCrowServer) Update ¶
func (_mock *MockCrowServer) Update(context1 context.Context, updateRequest *proto.UpdateRequest) (*proto.Empty, error)
Update provides a mock function for the type MockCrowServer
func (*MockCrowServer) Version ¶
func (_mock *MockCrowServer) Version(context1 context.Context, empty *proto.Empty) (*proto.VersionResponse, error)
Version provides a mock function for the type MockCrowServer
func (*MockCrowServer) Wait ¶
func (_mock *MockCrowServer) Wait(context1 context.Context, waitRequest *proto.WaitRequest) (*proto.Empty, error)
Wait provides a mock function for the type MockCrowServer
type MockCrowServer_Done_Call ¶
MockCrowServer_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*MockCrowServer_Done_Call) Return ¶
func (_c *MockCrowServer_Done_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Done_Call
func (*MockCrowServer_Done_Call) Run ¶
func (_c *MockCrowServer_Done_Call) Run(run func(context1 context.Context, doneRequest *proto.DoneRequest)) *MockCrowServer_Done_Call
func (*MockCrowServer_Done_Call) RunAndReturn ¶
func (_c *MockCrowServer_Done_Call) RunAndReturn(run func(context1 context.Context, doneRequest *proto.DoneRequest) (*proto.Empty, error)) *MockCrowServer_Done_Call
type MockCrowServer_Expecter ¶
type MockCrowServer_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCrowServer_Expecter) Done ¶
func (_e *MockCrowServer_Expecter) Done(context1 interface{}, doneRequest interface{}) *MockCrowServer_Done_Call
Done is a helper method to define mock.On call
- context1
- doneRequest
func (*MockCrowServer_Expecter) Extend ¶
func (_e *MockCrowServer_Expecter) Extend(context1 interface{}, extendRequest interface{}) *MockCrowServer_Extend_Call
Extend is a helper method to define mock.On call
- context1
- extendRequest
func (*MockCrowServer_Expecter) Init ¶
func (_e *MockCrowServer_Expecter) Init(context1 interface{}, initRequest interface{}) *MockCrowServer_Init_Call
Init is a helper method to define mock.On call
- context1
- initRequest
func (*MockCrowServer_Expecter) Log ¶
func (_e *MockCrowServer_Expecter) Log(context1 interface{}, logRequest interface{}) *MockCrowServer_Log_Call
Log is a helper method to define mock.On call
- context1
- logRequest
func (*MockCrowServer_Expecter) Next ¶
func (_e *MockCrowServer_Expecter) Next(context1 interface{}, nextRequest interface{}) *MockCrowServer_Next_Call
Next is a helper method to define mock.On call
- context1
- nextRequest
func (*MockCrowServer_Expecter) RegisterAgent ¶
func (_e *MockCrowServer_Expecter) RegisterAgent(context1 interface{}, registerAgentRequest interface{}) *MockCrowServer_RegisterAgent_Call
RegisterAgent is a helper method to define mock.On call
- context1
- registerAgentRequest
func (*MockCrowServer_Expecter) ReportHealth ¶
func (_e *MockCrowServer_Expecter) ReportHealth(context1 interface{}, reportHealthRequest interface{}) *MockCrowServer_ReportHealth_Call
ReportHealth is a helper method to define mock.On call
- context1
- reportHealthRequest
func (*MockCrowServer_Expecter) UnregisterAgent ¶
func (_e *MockCrowServer_Expecter) UnregisterAgent(context1 interface{}, empty interface{}) *MockCrowServer_UnregisterAgent_Call
UnregisterAgent is a helper method to define mock.On call
- context1
- empty
func (*MockCrowServer_Expecter) Update ¶
func (_e *MockCrowServer_Expecter) Update(context1 interface{}, updateRequest interface{}) *MockCrowServer_Update_Call
Update is a helper method to define mock.On call
- context1
- updateRequest
func (*MockCrowServer_Expecter) Version ¶
func (_e *MockCrowServer_Expecter) Version(context1 interface{}, empty interface{}) *MockCrowServer_Version_Call
Version is a helper method to define mock.On call
- context1
- empty
func (*MockCrowServer_Expecter) Wait ¶
func (_e *MockCrowServer_Expecter) Wait(context1 interface{}, waitRequest interface{}) *MockCrowServer_Wait_Call
Wait is a helper method to define mock.On call
- context1
- waitRequest
type MockCrowServer_Extend_Call ¶
MockCrowServer_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*MockCrowServer_Extend_Call) Return ¶
func (_c *MockCrowServer_Extend_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Extend_Call
func (*MockCrowServer_Extend_Call) Run ¶
func (_c *MockCrowServer_Extend_Call) Run(run func(context1 context.Context, extendRequest *proto.ExtendRequest)) *MockCrowServer_Extend_Call
func (*MockCrowServer_Extend_Call) RunAndReturn ¶
func (_c *MockCrowServer_Extend_Call) RunAndReturn(run func(context1 context.Context, extendRequest *proto.ExtendRequest) (*proto.Empty, error)) *MockCrowServer_Extend_Call
type MockCrowServer_Init_Call ¶
MockCrowServer_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*MockCrowServer_Init_Call) Return ¶
func (_c *MockCrowServer_Init_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Init_Call
func (*MockCrowServer_Init_Call) Run ¶
func (_c *MockCrowServer_Init_Call) Run(run func(context1 context.Context, initRequest *proto.InitRequest)) *MockCrowServer_Init_Call
func (*MockCrowServer_Init_Call) RunAndReturn ¶
func (_c *MockCrowServer_Init_Call) RunAndReturn(run func(context1 context.Context, initRequest *proto.InitRequest) (*proto.Empty, error)) *MockCrowServer_Init_Call
type MockCrowServer_Log_Call ¶
MockCrowServer_Log_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Log'
func (*MockCrowServer_Log_Call) Return ¶
func (_c *MockCrowServer_Log_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Log_Call
func (*MockCrowServer_Log_Call) Run ¶
func (_c *MockCrowServer_Log_Call) Run(run func(context1 context.Context, logRequest *proto.LogRequest)) *MockCrowServer_Log_Call
func (*MockCrowServer_Log_Call) RunAndReturn ¶
func (_c *MockCrowServer_Log_Call) RunAndReturn(run func(context1 context.Context, logRequest *proto.LogRequest) (*proto.Empty, error)) *MockCrowServer_Log_Call
type MockCrowServer_Next_Call ¶
MockCrowServer_Next_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Next'
func (*MockCrowServer_Next_Call) Return ¶
func (_c *MockCrowServer_Next_Call) Return(nextResponse *proto.NextResponse, err error) *MockCrowServer_Next_Call
func (*MockCrowServer_Next_Call) Run ¶
func (_c *MockCrowServer_Next_Call) Run(run func(context1 context.Context, nextRequest *proto.NextRequest)) *MockCrowServer_Next_Call
func (*MockCrowServer_Next_Call) RunAndReturn ¶
func (_c *MockCrowServer_Next_Call) RunAndReturn(run func(context1 context.Context, nextRequest *proto.NextRequest) (*proto.NextResponse, error)) *MockCrowServer_Next_Call
type MockCrowServer_RegisterAgent_Call ¶
MockCrowServer_RegisterAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterAgent'
func (*MockCrowServer_RegisterAgent_Call) Return ¶
func (_c *MockCrowServer_RegisterAgent_Call) Return(registerAgentResponse *proto.RegisterAgentResponse, err error) *MockCrowServer_RegisterAgent_Call
func (*MockCrowServer_RegisterAgent_Call) Run ¶
func (_c *MockCrowServer_RegisterAgent_Call) Run(run func(context1 context.Context, registerAgentRequest *proto.RegisterAgentRequest)) *MockCrowServer_RegisterAgent_Call
func (*MockCrowServer_RegisterAgent_Call) RunAndReturn ¶
func (_c *MockCrowServer_RegisterAgent_Call) RunAndReturn(run func(context1 context.Context, registerAgentRequest *proto.RegisterAgentRequest) (*proto.RegisterAgentResponse, error)) *MockCrowServer_RegisterAgent_Call
type MockCrowServer_ReportHealth_Call ¶
MockCrowServer_ReportHealth_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportHealth'
func (*MockCrowServer_ReportHealth_Call) Return ¶
func (_c *MockCrowServer_ReportHealth_Call) Return(empty *proto.Empty, err error) *MockCrowServer_ReportHealth_Call
func (*MockCrowServer_ReportHealth_Call) Run ¶
func (_c *MockCrowServer_ReportHealth_Call) Run(run func(context1 context.Context, reportHealthRequest *proto.ReportHealthRequest)) *MockCrowServer_ReportHealth_Call
func (*MockCrowServer_ReportHealth_Call) RunAndReturn ¶
func (_c *MockCrowServer_ReportHealth_Call) RunAndReturn(run func(context1 context.Context, reportHealthRequest *proto.ReportHealthRequest) (*proto.Empty, error)) *MockCrowServer_ReportHealth_Call
type MockCrowServer_UnregisterAgent_Call ¶
MockCrowServer_UnregisterAgent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterAgent'
func (*MockCrowServer_UnregisterAgent_Call) Return ¶
func (_c *MockCrowServer_UnregisterAgent_Call) Return(empty1 *proto.Empty, err error) *MockCrowServer_UnregisterAgent_Call
func (*MockCrowServer_UnregisterAgent_Call) Run ¶
func (_c *MockCrowServer_UnregisterAgent_Call) Run(run func(context1 context.Context, empty *proto.Empty)) *MockCrowServer_UnregisterAgent_Call
func (*MockCrowServer_UnregisterAgent_Call) RunAndReturn ¶
func (_c *MockCrowServer_UnregisterAgent_Call) RunAndReturn(run func(context1 context.Context, empty *proto.Empty) (*proto.Empty, error)) *MockCrowServer_UnregisterAgent_Call
type MockCrowServer_Update_Call ¶
MockCrowServer_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockCrowServer_Update_Call) Return ¶
func (_c *MockCrowServer_Update_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Update_Call
func (*MockCrowServer_Update_Call) Run ¶
func (_c *MockCrowServer_Update_Call) Run(run func(context1 context.Context, updateRequest *proto.UpdateRequest)) *MockCrowServer_Update_Call
func (*MockCrowServer_Update_Call) RunAndReturn ¶
func (_c *MockCrowServer_Update_Call) RunAndReturn(run func(context1 context.Context, updateRequest *proto.UpdateRequest) (*proto.Empty, error)) *MockCrowServer_Update_Call
type MockCrowServer_Version_Call ¶
MockCrowServer_Version_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Version'
func (*MockCrowServer_Version_Call) Return ¶
func (_c *MockCrowServer_Version_Call) Return(versionResponse *proto.VersionResponse, err error) *MockCrowServer_Version_Call
func (*MockCrowServer_Version_Call) Run ¶
func (_c *MockCrowServer_Version_Call) Run(run func(context1 context.Context, empty *proto.Empty)) *MockCrowServer_Version_Call
func (*MockCrowServer_Version_Call) RunAndReturn ¶
func (_c *MockCrowServer_Version_Call) RunAndReturn(run func(context1 context.Context, empty *proto.Empty) (*proto.VersionResponse, error)) *MockCrowServer_Version_Call
type MockCrowServer_Wait_Call ¶
MockCrowServer_Wait_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Wait'
func (*MockCrowServer_Wait_Call) Return ¶
func (_c *MockCrowServer_Wait_Call) Return(empty *proto.Empty, err error) *MockCrowServer_Wait_Call
func (*MockCrowServer_Wait_Call) Run ¶
func (_c *MockCrowServer_Wait_Call) Run(run func(context1 context.Context, waitRequest *proto.WaitRequest)) *MockCrowServer_Wait_Call
func (*MockCrowServer_Wait_Call) RunAndReturn ¶
func (_c *MockCrowServer_Wait_Call) RunAndReturn(run func(context1 context.Context, waitRequest *proto.WaitRequest) (*proto.Empty, error)) *MockCrowServer_Wait_Call
type MockCrowServer_mustEmbedUnimplementedCrowServer_Call ¶
MockCrowServer_mustEmbedUnimplementedCrowServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCrowServer'
func (*MockCrowServer_mustEmbedUnimplementedCrowServer_Call) Run ¶
func (_c *MockCrowServer_mustEmbedUnimplementedCrowServer_Call) Run(run func()) *MockCrowServer_mustEmbedUnimplementedCrowServer_Call
func (*MockCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn ¶
func (_c *MockCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn(run func()) *MockCrowServer_mustEmbedUnimplementedCrowServer_Call
type MockUnsafeCrowAuthServer ¶
MockUnsafeCrowAuthServer is an autogenerated mock type for the UnsafeCrowAuthServer type
func NewMockUnsafeCrowAuthServer ¶
func NewMockUnsafeCrowAuthServer(t interface { mock.TestingT Cleanup(func()) }) *MockUnsafeCrowAuthServer
NewMockUnsafeCrowAuthServer creates a new instance of MockUnsafeCrowAuthServer. 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 (*MockUnsafeCrowAuthServer) EXPECT ¶
func (_m *MockUnsafeCrowAuthServer) EXPECT() *MockUnsafeCrowAuthServer_Expecter
type MockUnsafeCrowAuthServer_Expecter ¶
type MockUnsafeCrowAuthServer_Expecter struct {
// contains filtered or unexported fields
}
type MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call ¶
MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCrowAuthServer'
func (*MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn ¶
func (_c *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call) RunAndReturn(run func()) *MockUnsafeCrowAuthServer_mustEmbedUnimplementedCrowAuthServer_Call
type MockUnsafeCrowServer ¶
MockUnsafeCrowServer is an autogenerated mock type for the UnsafeCrowServer type
func NewMockUnsafeCrowServer ¶
func NewMockUnsafeCrowServer(t interface { mock.TestingT Cleanup(func()) }) *MockUnsafeCrowServer
NewMockUnsafeCrowServer creates a new instance of MockUnsafeCrowServer. 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 (*MockUnsafeCrowServer) EXPECT ¶
func (_m *MockUnsafeCrowServer) EXPECT() *MockUnsafeCrowServer_Expecter
type MockUnsafeCrowServer_Expecter ¶
type MockUnsafeCrowServer_Expecter struct {
// contains filtered or unexported fields
}
type MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call ¶
MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'mustEmbedUnimplementedCrowServer'
func (*MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) Run ¶
func (_c *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) Run(run func()) *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call
func (*MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn ¶
func (_c *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call) RunAndReturn(run func()) *MockUnsafeCrowServer_mustEmbedUnimplementedCrowServer_Call