tradingpoint

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: May 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
var File_tradingpoint_trading_point_proto protoreflect.FileDescriptor
View Source
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) 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 (PlaceOfWorkType) String added in v0.0.10

func (x PlaceOfWorkType) String() string

func (PlaceOfWorkType) Type added in v0.0.10

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) Enum

func (TradingPointType) EnumDescriptor deprecated

func (TradingPointType) EnumDescriptor() ([]byte, []int)

Deprecated: Use TradingPointType.Descriptor instead.

func (TradingPointType) Number

func (TradingPointType) String

func (x TradingPointType) String() string

func (TradingPointType) Type

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) Register added in v0.0.8

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.

Jump to

Keyboard shortcuts

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