discountsgrpc

package
Version: v0.0.0-...-0b542b9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDiscountsClient) Get

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.

Jump to

Keyboard shortcuts

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