client

package
v0.0.0-...-aa8767d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package client is a generated GoMock package.

Index

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) Construct

func (m *MockClient) Construct() error

Construct mocks base method.

func (*MockClient) Destruct

func (m *MockClient) Destruct()

Destruct 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL