Documentation ¶
Index ¶
- Variables
- func RegisterSeatHandleServer(s grpc.ServiceRegistrar, srv SeatHandleServer)
- type ReserveReq
- func (*ReserveReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReserveReq) GetCellNo() int64
- func (x *ReserveReq) GetLocationId() int64
- func (x *ReserveReq) GetUid() int64
- func (*ReserveReq) ProtoMessage()
- func (x *ReserveReq) ProtoReflect() protoreflect.Message
- func (x *ReserveReq) Reset()
- func (x *ReserveReq) String() string
- type ReserveRes
- type SeatHandleClient
- type SeatHandleServer
- type UnimplementedSeatHandleServer
- type UnsafeSeatHandleServer
Constants ¶
This section is empty.
Variables ¶
var File_seat_handle_v1_seat_handle_proto protoreflect.FileDescriptor
var SeatHandle_ServiceDesc = grpc.ServiceDesc{ ServiceName: "seat_handle.v1.SeatHandle", HandlerType: (*SeatHandleServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Reserve", Handler: _SeatHandle_Reserve_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "seat_handle/v1/seat_handle.proto", }
SeatHandle_ServiceDesc is the grpc.ServiceDesc for SeatHandle service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterSeatHandleServer ¶
func RegisterSeatHandleServer(s grpc.ServiceRegistrar, srv SeatHandleServer)
Types ¶
type ReserveReq ¶
type ReserveReq struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` LocationId int64 `protobuf:"varint,2,opt,name=locationId,proto3" json:"locationId,omitempty"` CellNo int64 `protobuf:"varint,3,opt,name=cellNo,proto3" json:"cellNo,omitempty"` // contains filtered or unexported fields }
func (*ReserveReq) Descriptor
deprecated
func (*ReserveReq) Descriptor() ([]byte, []int)
Deprecated: Use ReserveReq.ProtoReflect.Descriptor instead.
func (*ReserveReq) GetCellNo ¶
func (x *ReserveReq) GetCellNo() int64
func (*ReserveReq) GetLocationId ¶
func (x *ReserveReq) GetLocationId() int64
func (*ReserveReq) GetUid ¶
func (x *ReserveReq) GetUid() int64
func (*ReserveReq) ProtoMessage ¶
func (*ReserveReq) ProtoMessage()
func (*ReserveReq) ProtoReflect ¶
func (x *ReserveReq) ProtoReflect() protoreflect.Message
func (*ReserveReq) Reset ¶
func (x *ReserveReq) Reset()
func (*ReserveReq) String ¶
func (x *ReserveReq) String() string
type ReserveRes ¶
type ReserveRes struct {
// contains filtered or unexported fields
}
func (*ReserveRes) Descriptor
deprecated
func (*ReserveRes) Descriptor() ([]byte, []int)
Deprecated: Use ReserveRes.ProtoReflect.Descriptor instead.
func (*ReserveRes) ProtoMessage ¶
func (*ReserveRes) ProtoMessage()
func (*ReserveRes) ProtoReflect ¶
func (x *ReserveRes) ProtoReflect() protoreflect.Message
func (*ReserveRes) Reset ¶
func (x *ReserveRes) Reset()
func (*ReserveRes) String ¶
func (x *ReserveRes) String() string
type SeatHandleClient ¶
type SeatHandleClient interface {
Reserve(ctx context.Context, in *ReserveReq, opts ...grpc.CallOption) (*ReserveRes, error)
}
SeatHandleClient is the client API for SeatHandle 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 NewSeatHandleClient ¶
func NewSeatHandleClient(cc grpc.ClientConnInterface) SeatHandleClient
type SeatHandleServer ¶
type SeatHandleServer interface { Reserve(context.Context, *ReserveReq) (*ReserveRes, error) // contains filtered or unexported methods }
SeatHandleServer is the server API for SeatHandle service. All implementations must embed UnimplementedSeatHandleServer for forward compatibility
type UnimplementedSeatHandleServer ¶
type UnimplementedSeatHandleServer struct { }
UnimplementedSeatHandleServer must be embedded to have forward compatible implementations.
func (UnimplementedSeatHandleServer) Reserve ¶
func (UnimplementedSeatHandleServer) Reserve(context.Context, *ReserveReq) (*ReserveRes, error)
type UnsafeSeatHandleServer ¶
type UnsafeSeatHandleServer interface {
// contains filtered or unexported methods
}
UnsafeSeatHandleServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SeatHandleServer will result in compilation errors.