Documentation ¶
Overview ¶
Package discountsgrpc is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDiscountsService ¶
func RegisterDiscountsService(s grpc.ServiceRegistrar, srv *DiscountsService)
RegisterDiscountsService registers a service implementation with a gRPC server.
Types ¶
type DiscountsClient ¶
type DiscountsClient interface {
Get(ctx context.Context, in *domainsgrpc.DiscountRequest, opts ...grpc.CallOption) (*domainsgrpc.DiscountResponse, error)
}
DiscountsClient is the client API for Discounts service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDiscountsClient ¶
func NewDiscountsClient(cc grpc.ClientConnInterface) DiscountsClient
type DiscountsService ¶
type DiscountsService struct {
Get func(context.Context, *domainsgrpc.DiscountRequest) (*domainsgrpc.DiscountResponse, error)
}
DiscountsService is the service API for Discounts service. Fields should be assigned to their respective handler implementations only before RegisterDiscountsService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
type MockDiscountsClient ¶
type MockDiscountsClient struct {
// contains filtered or unexported fields
}
MockDiscountsClient is a mock of DiscountsClient interface.
func NewMockDiscountsClient ¶
func NewMockDiscountsClient(ctrl *gomock.Controller) *MockDiscountsClient
NewMockDiscountsClient creates a new mock instance.
func (*MockDiscountsClient) EXPECT ¶
func (m *MockDiscountsClient) EXPECT() *MockDiscountsClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiscountsClient) Get ¶
func (m *MockDiscountsClient) Get(ctx context.Context, in *domainsgrpc.DiscountRequest, opts ...grpc.CallOption) (*domainsgrpc.DiscountResponse, error)
Get mocks base method.
type MockDiscountsClientMockRecorder ¶
type MockDiscountsClientMockRecorder struct {
// contains filtered or unexported fields
}
MockDiscountsClientMockRecorder is the mock recorder for MockDiscountsClient.
func (*MockDiscountsClientMockRecorder) Get ¶
func (mr *MockDiscountsClientMockRecorder) Get(ctx, in interface{}, opts ...interface{}) *gomock.Call
Get indicates an expected call of Get.