distribution

package
v0.0.38 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DistributionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "customer.DistributionService",
	HandlerType: (*DistributionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _DistributionService_Create_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "distribution/distribution.proto",
}

DistributionService_ServiceDesc is the grpc.ServiceDesc for DistributionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_distribution_distribution_proto protoreflect.FileDescriptor

Functions

func RegisterDistributionServiceServer

func RegisterDistributionServiceServer(s grpc.ServiceRegistrar, srv DistributionServiceServer)

Types

type CreateRequest

type CreateRequest struct {
	TradingPointId   int32                         `protobuf:"varint,1,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	Products         []*ProductDistribution        `protobuf:"bytes,3,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRequest) Descriptor deprecated

func (*CreateRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.

func (*CreateRequest) GetProducts

func (x *CreateRequest) GetProducts() []*ProductDistribution

func (*CreateRequest) GetTradingPointId

func (x *CreateRequest) GetTradingPointId() int32

func (*CreateRequest) GetTradingPointType

func (x *CreateRequest) GetTradingPointType() tradingpoint.TradingPointType

func (*CreateRequest) ProtoMessage

func (*CreateRequest) ProtoMessage()

func (*CreateRequest) ProtoReflect

func (x *CreateRequest) ProtoReflect() protoreflect.Message

func (*CreateRequest) Reset

func (x *CreateRequest) Reset()

func (*CreateRequest) String

func (x *CreateRequest) String() string

type CreateResponse

type CreateResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateResponse) Descriptor deprecated

func (*CreateResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.

func (*CreateResponse) GetId

func (x *CreateResponse) GetId() int32

func (*CreateResponse) ProtoMessage

func (*CreateResponse) ProtoMessage()

func (*CreateResponse) ProtoReflect

func (x *CreateResponse) ProtoReflect() protoreflect.Message

func (*CreateResponse) Reset

func (x *CreateResponse) Reset()

func (*CreateResponse) String

func (x *CreateResponse) String() string

type Distribution

type Distribution struct {
	Id               int32                         `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TradingPointId   int32                         `protobuf:"varint,2,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"`
	TradingPointType tradingpoint.TradingPointType `` /* 147-byte string literal not displayed */
	Products         []*ProductDistribution        `protobuf:"bytes,4,rep,name=products,proto3" json:"products,omitempty"`
	// contains filtered or unexported fields
}

func (*Distribution) Descriptor deprecated

func (*Distribution) Descriptor() ([]byte, []int)

Deprecated: Use Distribution.ProtoReflect.Descriptor instead.

func (*Distribution) GetId

func (x *Distribution) GetId() int32

func (*Distribution) GetProducts

func (x *Distribution) GetProducts() []*ProductDistribution

func (*Distribution) GetTradingPointId

func (x *Distribution) GetTradingPointId() int32

func (*Distribution) GetTradingPointType

func (x *Distribution) GetTradingPointType() tradingpoint.TradingPointType

func (*Distribution) ProtoMessage

func (*Distribution) ProtoMessage()

func (*Distribution) ProtoReflect

func (x *Distribution) ProtoReflect() protoreflect.Message

func (*Distribution) Reset

func (x *Distribution) Reset()

func (*Distribution) String

func (x *Distribution) String() string

type DistributionServiceClient

type DistributionServiceClient interface {
	Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
}

DistributionServiceClient is the client API for DistributionService 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.

type DistributionServiceServer

type DistributionServiceServer interface {
	Create(context.Context, *CreateRequest) (*CreateResponse, error)
	// contains filtered or unexported methods
}

DistributionServiceServer is the server API for DistributionService service. All implementations must embed UnimplementedDistributionServiceServer for forward compatibility

type ProductDistribution

type ProductDistribution struct {
	Quantity int32            `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Price    *core.Money      `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"`
	Product  *product.Product `protobuf:"bytes,3,opt,name=product,proto3" json:"product,omitempty"`
	// contains filtered or unexported fields
}

func (*ProductDistribution) Descriptor deprecated

func (*ProductDistribution) Descriptor() ([]byte, []int)

Deprecated: Use ProductDistribution.ProtoReflect.Descriptor instead.

func (*ProductDistribution) GetPrice

func (x *ProductDistribution) GetPrice() *core.Money

func (*ProductDistribution) GetProduct

func (x *ProductDistribution) GetProduct() *product.Product

func (*ProductDistribution) GetQuantity

func (x *ProductDistribution) GetQuantity() int32

func (*ProductDistribution) ProtoMessage

func (*ProductDistribution) ProtoMessage()

func (*ProductDistribution) ProtoReflect

func (x *ProductDistribution) ProtoReflect() protoreflect.Message

func (*ProductDistribution) Reset

func (x *ProductDistribution) Reset()

func (*ProductDistribution) String

func (x *ProductDistribution) String() string

type UnimplementedDistributionServiceServer

type UnimplementedDistributionServiceServer struct {
}

UnimplementedDistributionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDistributionServiceServer) Create

type UnsafeDistributionServiceServer

type UnsafeDistributionServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeDistributionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DistributionServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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