Documentation
¶
Index ¶
- Variables
- func RegisterTradingPointServiceServer(s grpc.ServiceRegistrar, srv TradingPointServiceServer)
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAddress() string
- func (x *RegisterRequest) GetAreaPlot() float64
- func (x *RegisterRequest) GetCounterCount() int32
- func (x *RegisterRequest) GetRentalCharge() *core.Money
- func (x *RegisterRequest) GetType() TradingPointType
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type TradingPointServiceClient
- type TradingPointServiceServer
- type TradingPointType
- func (TradingPointType) Descriptor() protoreflect.EnumDescriptor
- func (x TradingPointType) Enum() *TradingPointType
- func (TradingPointType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TradingPointType) Number() protoreflect.EnumNumber
- func (x TradingPointType) String() string
- func (TradingPointType) Type() protoreflect.EnumType
- type UnimplementedTradingPointServiceServer
- type UnsafeTradingPointServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( TradingPointType_name = map[int32]string{ 0: "STORE", 1: "DEPARTMENT_STORE", 2: "KIOSK", 3: "TRAY", } TradingPointType_value = map[string]int32{ "STORE": 0, "DEPARTMENT_STORE": 1, "KIOSK": 2, "TRAY": 3, } )
Enum value maps for TradingPointType.
var File_tradingpoint_trading_point_proto protoreflect.FileDescriptor
var TradingPointService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tradingpoint.TradingPointService", HandlerType: (*TradingPointServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Register", Handler: _TradingPointService_Register_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "tradingpoint/trading_point.proto", }
TradingPointService_ServiceDesc is the grpc.ServiceDesc for TradingPointService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTradingPointServiceServer ¶ added in v0.0.8
func RegisterTradingPointServiceServer(s grpc.ServiceRegistrar, srv TradingPointServiceServer)
Types ¶
type RegisterRequest ¶
type RegisterRequest struct { Type TradingPointType `protobuf:"varint,1,opt,name=type,proto3,enum=tradingpoint.TradingPointType" json:"type,omitempty"` AreaPlot float64 `protobuf:"fixed64,2,opt,name=area_plot,json=areaPlot,proto3" json:"area_plot,omitempty"` RentalCharge *core.Money `protobuf:"bytes,3,opt,name=rental_charge,json=rentalCharge,proto3" json:"rental_charge,omitempty"` CounterCount int32 `protobuf:"varint,4,opt,name=counter_count,json=counterCount,proto3" json:"counter_count,omitempty"` Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetAddress ¶
func (x *RegisterRequest) GetAddress() string
func (*RegisterRequest) GetAreaPlot ¶
func (x *RegisterRequest) GetAreaPlot() float64
func (*RegisterRequest) GetCounterCount ¶
func (x *RegisterRequest) GetCounterCount() int32
func (*RegisterRequest) GetRentalCharge ¶
func (x *RegisterRequest) GetRentalCharge() *core.Money
func (*RegisterRequest) GetType ¶
func (x *RegisterRequest) GetType() 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 TradingPointServiceClient ¶ added in v0.0.8
type TradingPointServiceClient interface {
Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
}
TradingPointServiceClient is the client API for TradingPointService 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 NewTradingPointServiceClient ¶ added in v0.0.8
func NewTradingPointServiceClient(cc grpc.ClientConnInterface) TradingPointServiceClient
type TradingPointServiceServer ¶ added in v0.0.8
type TradingPointServiceServer interface { Register(context.Context, *RegisterRequest) (*RegisterResponse, error) // contains filtered or unexported methods }
TradingPointServiceServer is the server API for TradingPointService service. All implementations must embed UnimplementedTradingPointServiceServer for forward compatibility
type TradingPointType ¶
type TradingPointType int32
const ( TradingPointType_STORE TradingPointType = 0 TradingPointType_DEPARTMENT_STORE TradingPointType = 1 TradingPointType_KIOSK TradingPointType = 2 TradingPointType_TRAY TradingPointType = 3 )
func (TradingPointType) Descriptor ¶
func (TradingPointType) Descriptor() protoreflect.EnumDescriptor
func (TradingPointType) Enum ¶
func (x TradingPointType) Enum() *TradingPointType
func (TradingPointType) EnumDescriptor
deprecated
func (TradingPointType) EnumDescriptor() ([]byte, []int)
Deprecated: Use TradingPointType.Descriptor instead.
func (TradingPointType) Number ¶
func (x TradingPointType) Number() protoreflect.EnumNumber
func (TradingPointType) String ¶
func (x TradingPointType) String() string
func (TradingPointType) Type ¶
func (TradingPointType) Type() protoreflect.EnumType
type UnimplementedTradingPointServiceServer ¶ added in v0.0.8
type UnimplementedTradingPointServiceServer struct { }
UnimplementedTradingPointServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTradingPointServiceServer) Register ¶ added in v0.0.8
func (UnimplementedTradingPointServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
type UnsafeTradingPointServiceServer ¶ added in v0.0.8
type UnsafeTradingPointServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTradingPointServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TradingPointServiceServer will result in compilation errors.