tradingpoint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_tradingpoint_trading_point_proto protoreflect.FileDescriptor
View Source
var TradingPoint_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tradingpoint.TradingPoint",
	HandlerType: (*TradingPointServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _TradingPoint_Register_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tradingpoint/trading_point.proto",
}

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

Functions

func RegisterTradingPointServer

func RegisterTradingPointServer(s grpc.ServiceRegistrar, srv TradingPointServer)

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"`
	Type TradingPointType `protobuf:"varint,2,opt,name=type,proto3,enum=tradingpoint.TradingPointType" json:"type,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) GetType

func (x *RegisterResponse) GetType() TradingPointType

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 TradingPointClient

type TradingPointClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
}

TradingPointClient is the client API for TradingPoint 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 TradingPointServer

type TradingPointServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	// contains filtered or unexported methods
}

TradingPointServer is the server API for TradingPoint service. All implementations must embed UnimplementedTradingPointServer 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) 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 UnimplementedTradingPointServer

type UnimplementedTradingPointServer struct {
}

UnimplementedTradingPointServer must be embedded to have forward compatible implementations.

func (UnimplementedTradingPointServer) Register

type UnsafeTradingPointServer

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

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

Jump to

Keyboard shortcuts

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