Documentation ¶
Index ¶
- Variables
- func RegisterSellerServiceServer(s grpc.ServiceRegistrar, srv SellerServiceServer)
- type ListByTradingPointRequest
- func (*ListByTradingPointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListByTradingPointRequest) GetTradingPointId() int32
- func (x *ListByTradingPointRequest) GetTradingPointType() tradingpoint.TradingPointType
- func (*ListByTradingPointRequest) ProtoMessage()
- func (x *ListByTradingPointRequest) ProtoReflect() protoreflect.Message
- func (x *ListByTradingPointRequest) Reset()
- func (x *ListByTradingPointRequest) String() string
- type ListByTradingPointResponse
- func (*ListByTradingPointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListByTradingPointResponse) GetSeller() []*Seller
- func (*ListByTradingPointResponse) ProtoMessage()
- func (x *ListByTradingPointResponse) ProtoReflect() protoreflect.Message
- func (x *ListByTradingPointResponse) Reset()
- func (x *ListByTradingPointResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetBirthDate() *core.Date
- func (x *RegisterRequest) GetFirstName() string
- func (x *RegisterRequest) GetLastName() string
- func (x *RegisterRequest) GetMiddleName() string
- func (x *RegisterRequest) GetPhoneNumber() string
- func (x *RegisterRequest) GetPlaceOfWorkId() int32
- func (x *RegisterRequest) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType
- func (x *RegisterRequest) GetSalary() *core.Money
- func (x *RegisterRequest) GetTradingPointId() int32
- func (x *RegisterRequest) GetTradingPointType() tradingpoint.TradingPointType
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type Seller
- func (*Seller) Descriptor() ([]byte, []int)deprecated
- func (x *Seller) GetBirthDate() *core.Date
- func (x *Seller) GetFirstName() string
- func (x *Seller) GetId() int32
- func (x *Seller) GetLastName() string
- func (x *Seller) GetMiddleName() string
- func (x *Seller) GetPhoneNumber() string
- func (x *Seller) GetPlaceOfWorkId() int32
- func (x *Seller) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType
- func (x *Seller) GetSalary() *core.Money
- func (x *Seller) GetTradingPointId() int32
- func (x *Seller) GetTradingPointType() tradingpoint.TradingPointType
- func (*Seller) ProtoMessage()
- func (x *Seller) ProtoReflect() protoreflect.Message
- func (x *Seller) Reset()
- func (x *Seller) String() string
- type SellerServiceClient
- type SellerServiceServer
- type UnimplementedSellerServiceServer
- type UnsafeSellerServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_seller_seller_proto protoreflect.FileDescriptor
var SellerService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "seller.SellerService", HandlerType: (*SellerServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _SellerService_Register_Handler, }, { MethodName: "ListByTradingPoint", Handler: _SellerService_ListByTradingPoint_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "seller/seller.proto", }
SellerService_ServiceDesc is the grpc.ServiceDesc for SellerService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSellerServiceServer ¶
func RegisterSellerServiceServer(s grpc.ServiceRegistrar, srv SellerServiceServer)
Types ¶
type ListByTradingPointRequest ¶
type ListByTradingPointRequest 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 */ // contains filtered or unexported fields }
func (*ListByTradingPointRequest) Descriptor
deprecated
func (*ListByTradingPointRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListByTradingPointRequest.ProtoReflect.Descriptor instead.
func (*ListByTradingPointRequest) GetTradingPointId ¶
func (x *ListByTradingPointRequest) GetTradingPointId() int32
func (*ListByTradingPointRequest) GetTradingPointType ¶
func (x *ListByTradingPointRequest) GetTradingPointType() tradingpoint.TradingPointType
func (*ListByTradingPointRequest) ProtoMessage ¶
func (*ListByTradingPointRequest) ProtoMessage()
func (*ListByTradingPointRequest) ProtoReflect ¶
func (x *ListByTradingPointRequest) ProtoReflect() protoreflect.Message
func (*ListByTradingPointRequest) Reset ¶
func (x *ListByTradingPointRequest) Reset()
func (*ListByTradingPointRequest) String ¶
func (x *ListByTradingPointRequest) String() string
type ListByTradingPointResponse ¶
type ListByTradingPointResponse struct { Seller []*Seller `protobuf:"bytes,1,rep,name=seller,proto3" json:"seller,omitempty"` // contains filtered or unexported fields }
func (*ListByTradingPointResponse) Descriptor
deprecated
func (*ListByTradingPointResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListByTradingPointResponse.ProtoReflect.Descriptor instead.
func (*ListByTradingPointResponse) GetSeller ¶
func (x *ListByTradingPointResponse) GetSeller() []*Seller
func (*ListByTradingPointResponse) ProtoMessage ¶
func (*ListByTradingPointResponse) ProtoMessage()
func (*ListByTradingPointResponse) ProtoReflect ¶
func (x *ListByTradingPointResponse) ProtoReflect() protoreflect.Message
func (*ListByTradingPointResponse) Reset ¶
func (x *ListByTradingPointResponse) Reset()
func (*ListByTradingPointResponse) String ¶
func (x *ListByTradingPointResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName string `protobuf:"bytes,3,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` BirthDate *core.Date `protobuf:"bytes,4,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` Salary *core.Money `protobuf:"bytes,5,opt,name=salary,proto3" json:"salary,omitempty"` PhoneNumber string `protobuf:"bytes,6,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` PlaceOfWorkId int32 `protobuf:"varint,7,opt,name=place_of_work_id,json=placeOfWorkId,proto3" json:"place_of_work_id,omitempty"` PlaceOfWorkType tradingpoint.PlaceOfWorkType `` /* 145-byte string literal not displayed */ TradingPointId int32 `protobuf:"varint,9,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"` TradingPointType tradingpoint.TradingPointType `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetBirthDate ¶
func (x *RegisterRequest) GetBirthDate() *core.Date
func (*RegisterRequest) GetFirstName ¶
func (x *RegisterRequest) GetFirstName() string
func (*RegisterRequest) GetLastName ¶
func (x *RegisterRequest) GetLastName() string
func (*RegisterRequest) GetMiddleName ¶
func (x *RegisterRequest) GetMiddleName() string
func (*RegisterRequest) GetPhoneNumber ¶
func (x *RegisterRequest) GetPhoneNumber() string
func (*RegisterRequest) GetPlaceOfWorkId ¶
func (x *RegisterRequest) GetPlaceOfWorkId() int32
func (*RegisterRequest) GetPlaceOfWorkType ¶
func (x *RegisterRequest) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType
func (*RegisterRequest) GetSalary ¶
func (x *RegisterRequest) GetSalary() *core.Money
func (*RegisterRequest) GetTradingPointId ¶
func (x *RegisterRequest) GetTradingPointId() int32
func (*RegisterRequest) GetTradingPointType ¶
func (x *RegisterRequest) GetTradingPointType() tradingpoint.TradingPointType
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetId ¶
func (x *RegisterResponse) GetId() int32
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type Seller ¶
type Seller struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` FirstName string `protobuf:"bytes,2,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"` LastName string `protobuf:"bytes,3,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"` MiddleName string `protobuf:"bytes,4,opt,name=middle_name,json=middleName,proto3" json:"middle_name,omitempty"` BirthDate *core.Date `protobuf:"bytes,5,opt,name=birth_date,json=birthDate,proto3" json:"birth_date,omitempty"` Salary *core.Money `protobuf:"bytes,6,opt,name=salary,proto3" json:"salary,omitempty"` PhoneNumber string `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` PlaceOfWorkId int32 `protobuf:"varint,8,opt,name=place_of_work_id,json=placeOfWorkId,proto3" json:"place_of_work_id,omitempty"` PlaceOfWorkType tradingpoint.PlaceOfWorkType `` /* 145-byte string literal not displayed */ TradingPointId int32 `protobuf:"varint,10,opt,name=trading_point_id,json=tradingPointId,proto3" json:"trading_point_id,omitempty"` TradingPointType tradingpoint.TradingPointType `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Seller) Descriptor
deprecated
func (*Seller) GetBirthDate ¶
func (*Seller) GetFirstName ¶
func (*Seller) GetLastName ¶
func (*Seller) GetMiddleName ¶
func (*Seller) GetPhoneNumber ¶
func (*Seller) GetPlaceOfWorkId ¶
func (*Seller) GetPlaceOfWorkType ¶
func (x *Seller) GetPlaceOfWorkType() tradingpoint.PlaceOfWorkType
func (*Seller) GetTradingPointId ¶
func (*Seller) GetTradingPointType ¶
func (x *Seller) GetTradingPointType() tradingpoint.TradingPointType
func (*Seller) ProtoMessage ¶
func (*Seller) ProtoMessage()
func (*Seller) ProtoReflect ¶
func (x *Seller) ProtoReflect() protoreflect.Message
type SellerServiceClient ¶
type SellerServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) ListByTradingPoint(ctx context.Context, in *ListByTradingPointRequest, opts ...grpc.CallOption) (*ListByTradingPointResponse, error) }
SellerServiceClient is the client API for SellerService 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 NewSellerServiceClient ¶
func NewSellerServiceClient(cc grpc.ClientConnInterface) SellerServiceClient
type SellerServiceServer ¶
type SellerServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) ListByTradingPoint(context.Context, *ListByTradingPointRequest) (*ListByTradingPointResponse, error) // contains filtered or unexported methods }
SellerServiceServer is the server API for SellerService service. All implementations must embed UnimplementedSellerServiceServer for forward compatibility
type UnimplementedSellerServiceServer ¶
type UnimplementedSellerServiceServer struct { }
UnimplementedSellerServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedSellerServiceServer) ListByTradingPoint ¶
func (UnimplementedSellerServiceServer) ListByTradingPoint(context.Context, *ListByTradingPointRequest) (*ListByTradingPointResponse, error)
func (UnimplementedSellerServiceServer) Register ¶
func (UnimplementedSellerServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeSellerServiceServer ¶
type UnsafeSellerServiceServer interface {
// contains filtered or unexported methods
}
UnsafeSellerServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SellerServiceServer will result in compilation errors.