Documentation
¶
Index ¶
- Variables
- func RegisterTradingPointServiceServer(s grpc.ServiceRegistrar, srv TradingPointServiceServer)
- type ListRequest
- type ListResponse
- type PlaceOfWorkType
- func (PlaceOfWorkType) Descriptor() protoreflect.EnumDescriptor
- func (x PlaceOfWorkType) Enum() *PlaceOfWorkType
- func (PlaceOfWorkType) EnumDescriptor() ([]byte, []int)deprecated
- func (x PlaceOfWorkType) Number() protoreflect.EnumNumber
- func (x PlaceOfWorkType) String() string
- func (PlaceOfWorkType) Type() protoreflect.EnumType
- 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 TradingPoint
- func (*TradingPoint) Descriptor() ([]byte, []int)deprecated
- func (x *TradingPoint) GetAddress() string
- func (x *TradingPoint) GetAreaPlot() float64
- func (x *TradingPoint) GetCounterCount() int32
- func (x *TradingPoint) GetId() int32
- func (x *TradingPoint) GetRentalCharge() *core.Money
- func (x *TradingPoint) GetType() TradingPointType
- func (*TradingPoint) ProtoMessage()
- func (x *TradingPoint) ProtoReflect() protoreflect.Message
- func (x *TradingPoint) Reset()
- func (x *TradingPoint) String() string
- 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: "TRADING_POINT_STORE", 1: "TRADING_POINT_DEPARTMENT_STORE", 2: "TRADING_POINT_KIOSK", 3: "TRADING_POINT_TRAY", } TradingPointType_value = map[string]int32{ "TRADING_POINT_STORE": 0, "TRADING_POINT_DEPARTMENT_STORE": 1, "TRADING_POINT_KIOSK": 2, "TRADING_POINT_TRAY": 3, } )
Enum value maps for TradingPointType.
var ( PlaceOfWorkType_name = map[int32]string{ 0: "PLACE_OF_WORK_HALL", 1: "PLACE_OF_WORK_KIOSK", 2: "PLACE_OF_WORK_TRAY", } PlaceOfWorkType_value = map[string]int32{ "PLACE_OF_WORK_HALL": 0, "PLACE_OF_WORK_KIOSK": 1, "PLACE_OF_WORK_TRAY": 2, } )
Enum value maps for PlaceOfWorkType.
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, }, { MethodName: "List", Handler: _TradingPointService_List_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 ListRequest ¶ added in v0.0.19
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
added in
v0.0.19
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶ added in v0.0.19
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶ added in v0.0.19
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶ added in v0.0.19
func (x *ListRequest) Reset()
func (*ListRequest) String ¶ added in v0.0.19
func (x *ListRequest) String() string
type ListResponse ¶ added in v0.0.11
type ListResponse struct { TradingPoints []*TradingPoint `protobuf:"bytes,1,rep,name=trading_points,json=tradingPoints,proto3" json:"trading_points,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
added in
v0.0.11
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetTradingPoints ¶ added in v0.0.15
func (x *ListResponse) GetTradingPoints() []*TradingPoint
func (*ListResponse) ProtoMessage ¶ added in v0.0.11
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶ added in v0.0.11
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶ added in v0.0.11
func (x *ListResponse) Reset()
func (*ListResponse) String ¶ added in v0.0.11
func (x *ListResponse) String() string
type PlaceOfWorkType ¶ added in v0.0.10
type PlaceOfWorkType int32
const ( PlaceOfWorkType_PLACE_OF_WORK_HALL PlaceOfWorkType = 0 PlaceOfWorkType_PLACE_OF_WORK_KIOSK PlaceOfWorkType = 1 PlaceOfWorkType_PLACE_OF_WORK_TRAY PlaceOfWorkType = 2 )
func (PlaceOfWorkType) Descriptor ¶ added in v0.0.10
func (PlaceOfWorkType) Descriptor() protoreflect.EnumDescriptor
func (PlaceOfWorkType) Enum ¶ added in v0.0.10
func (x PlaceOfWorkType) Enum() *PlaceOfWorkType
func (PlaceOfWorkType) EnumDescriptor
deprecated
added in
v0.0.10
func (PlaceOfWorkType) EnumDescriptor() ([]byte, []int)
Deprecated: Use PlaceOfWorkType.Descriptor instead.
func (PlaceOfWorkType) Number ¶ added in v0.0.10
func (x PlaceOfWorkType) Number() protoreflect.EnumNumber
func (PlaceOfWorkType) String ¶ added in v0.0.10
func (x PlaceOfWorkType) String() string
func (PlaceOfWorkType) Type ¶ added in v0.0.10
func (PlaceOfWorkType) Type() protoreflect.EnumType
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 TradingPoint ¶ added in v0.0.11
type TradingPoint struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type TradingPointType `protobuf:"varint,2,opt,name=type,proto3,enum=tradingpoint.TradingPointType" json:"type,omitempty"` AreaPlot float64 `protobuf:"fixed64,3,opt,name=area_plot,json=areaPlot,proto3" json:"area_plot,omitempty"` RentalCharge *core.Money `protobuf:"bytes,4,opt,name=rental_charge,json=rentalCharge,proto3" json:"rental_charge,omitempty"` CounterCount int32 `protobuf:"varint,5,opt,name=counter_count,json=counterCount,proto3" json:"counter_count,omitempty"` Address string `protobuf:"bytes,6,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*TradingPoint) Descriptor
deprecated
added in
v0.0.11
func (*TradingPoint) Descriptor() ([]byte, []int)
Deprecated: Use TradingPoint.ProtoReflect.Descriptor instead.
func (*TradingPoint) GetAddress ¶ added in v0.0.11
func (x *TradingPoint) GetAddress() string
func (*TradingPoint) GetAreaPlot ¶ added in v0.0.11
func (x *TradingPoint) GetAreaPlot() float64
func (*TradingPoint) GetCounterCount ¶ added in v0.0.11
func (x *TradingPoint) GetCounterCount() int32
func (*TradingPoint) GetId ¶ added in v0.0.11
func (x *TradingPoint) GetId() int32
func (*TradingPoint) GetRentalCharge ¶ added in v0.0.11
func (x *TradingPoint) GetRentalCharge() *core.Money
func (*TradingPoint) GetType ¶ added in v0.0.11
func (x *TradingPoint) GetType() TradingPointType
func (*TradingPoint) ProtoMessage ¶ added in v0.0.11
func (*TradingPoint) ProtoMessage()
func (*TradingPoint) ProtoReflect ¶ added in v0.0.11
func (x *TradingPoint) ProtoReflect() protoreflect.Message
func (*TradingPoint) Reset ¶ added in v0.0.11
func (x *TradingPoint) Reset()
func (*TradingPoint) String ¶ added in v0.0.11
func (x *TradingPoint) String() string
type TradingPointServiceClient ¶ added in v0.0.8
type TradingPointServiceClient interface { Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, 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) List(context.Context, *ListRequest) (*ListResponse, 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_TRADING_POINT_STORE TradingPointType = 0 TradingPointType_TRADING_POINT_DEPARTMENT_STORE TradingPointType = 1 TradingPointType_TRADING_POINT_KIOSK TradingPointType = 2 TradingPointType_TRADING_POINT_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) List ¶ added in v0.0.11
func (UnimplementedTradingPointServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
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.