v1

package
v0.0.0-...-2022bb5 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_seat_handle_v1_seat_handle_proto protoreflect.FileDescriptor
View Source
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

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.

Jump to

Keyboard shortcuts

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