Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
- type Client
- type ClientImpl
- type MockClient
- func (m *MockClient) CallHealth(service string) (*grpc_health_v1.HealthCheckResponse, error)
- func (m *MockClient) CallUpdate(knapsackDP *knapsack.KnapsackDP) (*knapsack.Result, error)
- func (m *MockClient) Construct() error
- func (m *MockClient) Destruct()
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- type MockClientMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Construct() error Destruct() CallUpdate(knapsackDP *pb.KnapsackDP) (*pb.Result, error) CallHealth(service string) (*healthpb.HealthCheckResponse, error) }
type ClientImpl ¶
type ClientImpl struct { Addr string Conn *grpc.ClientConn // contains filtered or unexported fields }
func (*ClientImpl) CallHealth ¶
func (client *ClientImpl) CallHealth(service string) (*healthpb.HealthCheckResponse, error)
func (*ClientImpl) CallUpdate ¶
func (client *ClientImpl) CallUpdate(knapsackDP *pb.KnapsackDP) (*pb.Result, error)
func (*ClientImpl) Construct ¶
func (client *ClientImpl) Construct() error
func (*ClientImpl) Destruct ¶
func (client *ClientImpl) Destruct()
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) CallHealth ¶
func (m *MockClient) CallHealth(service string) (*grpc_health_v1.HealthCheckResponse, error)
CallHealth mocks base method.
func (*MockClient) CallUpdate ¶
func (m *MockClient) CallUpdate(knapsackDP *knapsack.KnapsackDP) (*knapsack.Result, error)
CallUpdate mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) CallHealth ¶
func (mr *MockClientMockRecorder) CallHealth(service interface{}) *gomock.Call
CallHealth indicates an expected call of CallHealth.
func (*MockClientMockRecorder) CallUpdate ¶
func (mr *MockClientMockRecorder) CallUpdate(knapsackDP interface{}) *gomock.Call
CallUpdate indicates an expected call of CallUpdate.
func (*MockClientMockRecorder) Construct ¶
func (mr *MockClientMockRecorder) Construct() *gomock.Call
Construct indicates an expected call of Construct.
func (*MockClientMockRecorder) Destruct ¶
func (mr *MockClientMockRecorder) Destruct() *gomock.Call
Destruct indicates an expected call of Destruct.
Click to show internal directories.
Click to hide internal directories.