Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterStayServiceServer(s grpc.ServiceRegistrar, srv StayServiceServer)
- type CreateStayRequest
- func (*CreateStayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateStayRequest) GetCheckIn() *timestamppb.Timestamp
- func (x *CreateStayRequest) GetNote() string
- func (x *CreateStayRequest) GetReservationId() string
- func (x *CreateStayRequest) GetRoomId() string
- func (*CreateStayRequest) ProtoMessage()
- func (x *CreateStayRequest) ProtoReflect() protoreflect.Message
- func (x *CreateStayRequest) Reset()
- func (x *CreateStayRequest) String() string
- type CreateStayResponse
- type ListStaysRequest
- func (*ListStaysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListStaysRequest) GetLimit() int64
- func (x *ListStaysRequest) GetOffset() int64
- func (x *ListStaysRequest) GetReservationId() string
- func (x *ListStaysRequest) GetRoomId() string
- func (*ListStaysRequest) ProtoMessage()
- func (x *ListStaysRequest) ProtoReflect() protoreflect.Message
- func (x *ListStaysRequest) Reset()
- func (x *ListStaysRequest) String() string
- type ListStaysResponse
- func (*ListStaysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListStaysResponse) GetStays() []*Stay
- func (x *ListStaysResponse) GetTotal() int64
- func (*ListStaysResponse) ProtoMessage()
- func (x *ListStaysResponse) ProtoReflect() protoreflect.Message
- func (x *ListStaysResponse) Reset()
- func (x *ListStaysResponse) String() string
- type Stay
- func (*Stay) Descriptor() ([]byte, []int)deprecated
- func (x *Stay) GetCheckIn() *timestamppb.Timestamp
- func (x *Stay) GetCheckOut() *timestamppb.Timestamp
- func (x *Stay) GetCreatedAt() *timestamppb.Timestamp
- func (x *Stay) GetId() string
- func (x *Stay) GetNote() string
- func (x *Stay) GetReservationId() string
- func (x *Stay) GetRoomId() string
- func (x *Stay) GetUpdatedAt() *timestamppb.Timestamp
- func (*Stay) ProtoMessage()
- func (x *Stay) ProtoReflect() protoreflect.Message
- func (x *Stay) Reset()
- func (x *Stay) String() string
- type StayServiceClient
- type StayServiceServer
- type UnimplementedStayServiceServer
- func (UnimplementedStayServiceServer) CreateStay(context.Context, *CreateStayRequest) (*CreateStayResponse, error)
- func (UnimplementedStayServiceServer) ListStays(context.Context, *ListStaysRequest) (*ListStaysResponse, error)
- func (UnimplementedStayServiceServer) UpdateStay(context.Context, *UpdateStayRequest) (*UpdateStayResponse, error)
- type UnsafeStayServiceServer
- type UpdateStayRequest
- func (*UpdateStayRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateStayRequest) GetCheckOut() *timestamppb.Timestamp
- func (x *UpdateStayRequest) GetId() string
- func (x *UpdateStayRequest) GetNote() string
- func (x *UpdateStayRequest) GetRoomId() string
- func (*UpdateStayRequest) ProtoMessage()
- func (x *UpdateStayRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateStayRequest) Reset()
- func (x *UpdateStayRequest) String() string
- type UpdateStayResponse
Constants ¶
const ( StayService_ListStays_FullMethodName = "/staypb.StayService/ListStays" StayService_CreateStay_FullMethodName = "/staypb.StayService/CreateStay" StayService_UpdateStay_FullMethodName = "/staypb.StayService/UpdateStay" )
Variables ¶
var File_staypb_stay_proto protoreflect.FileDescriptor
var StayService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "staypb.StayService", HandlerType: (*StayServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListStays", Handler: _StayService_ListStays_Handler, }, { MethodName: "CreateStay", Handler: _StayService_CreateStay_Handler, }, { MethodName: "UpdateStay", Handler: _StayService_UpdateStay_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "staypb/stay.proto", }
StayService_ServiceDesc is the grpc.ServiceDesc for StayService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterStayServiceServer ¶
func RegisterStayServiceServer(s grpc.ServiceRegistrar, srv StayServiceServer)
Types ¶
type CreateStayRequest ¶
type CreateStayRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` CheckIn *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=check_in,json=checkIn,proto3" json:"check_in,omitempty"` Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*CreateStayRequest) Descriptor
deprecated
func (*CreateStayRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateStayRequest.ProtoReflect.Descriptor instead.
func (*CreateStayRequest) GetCheckIn ¶
func (x *CreateStayRequest) GetCheckIn() *timestamppb.Timestamp
func (*CreateStayRequest) GetNote ¶
func (x *CreateStayRequest) GetNote() string
func (*CreateStayRequest) GetReservationId ¶
func (x *CreateStayRequest) GetReservationId() string
func (*CreateStayRequest) GetRoomId ¶
func (x *CreateStayRequest) GetRoomId() string
func (*CreateStayRequest) ProtoMessage ¶
func (*CreateStayRequest) ProtoMessage()
func (*CreateStayRequest) ProtoReflect ¶
func (x *CreateStayRequest) ProtoReflect() protoreflect.Message
func (*CreateStayRequest) Reset ¶
func (x *CreateStayRequest) Reset()
func (*CreateStayRequest) String ¶
func (x *CreateStayRequest) String() string
type CreateStayResponse ¶
type CreateStayResponse struct { Stay *Stay `protobuf:"bytes,1,opt,name=stay,proto3" json:"stay,omitempty"` // contains filtered or unexported fields }
func (*CreateStayResponse) Descriptor
deprecated
func (*CreateStayResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateStayResponse.ProtoReflect.Descriptor instead.
func (*CreateStayResponse) GetStay ¶
func (x *CreateStayResponse) GetStay() *Stay
func (*CreateStayResponse) ProtoMessage ¶
func (*CreateStayResponse) ProtoMessage()
func (*CreateStayResponse) ProtoReflect ¶
func (x *CreateStayResponse) ProtoReflect() protoreflect.Message
func (*CreateStayResponse) Reset ¶
func (x *CreateStayResponse) Reset()
func (*CreateStayResponse) String ¶
func (x *CreateStayResponse) String() string
type ListStaysRequest ¶
type ListStaysRequest struct { RoomId string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` Limit int64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*ListStaysRequest) Descriptor
deprecated
func (*ListStaysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListStaysRequest.ProtoReflect.Descriptor instead.
func (*ListStaysRequest) GetLimit ¶
func (x *ListStaysRequest) GetLimit() int64
func (*ListStaysRequest) GetOffset ¶
func (x *ListStaysRequest) GetOffset() int64
func (*ListStaysRequest) GetReservationId ¶
func (x *ListStaysRequest) GetReservationId() string
func (*ListStaysRequest) GetRoomId ¶
func (x *ListStaysRequest) GetRoomId() string
func (*ListStaysRequest) ProtoMessage ¶
func (*ListStaysRequest) ProtoMessage()
func (*ListStaysRequest) ProtoReflect ¶
func (x *ListStaysRequest) ProtoReflect() protoreflect.Message
func (*ListStaysRequest) Reset ¶
func (x *ListStaysRequest) Reset()
func (*ListStaysRequest) String ¶
func (x *ListStaysRequest) String() string
type ListStaysResponse ¶
type ListStaysResponse struct { Stays []*Stay `protobuf:"bytes,1,rep,name=stays,proto3" json:"stays,omitempty"` Total int64 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` // contains filtered or unexported fields }
func (*ListStaysResponse) Descriptor
deprecated
func (*ListStaysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListStaysResponse.ProtoReflect.Descriptor instead.
func (*ListStaysResponse) GetStays ¶
func (x *ListStaysResponse) GetStays() []*Stay
func (*ListStaysResponse) GetTotal ¶
func (x *ListStaysResponse) GetTotal() int64
func (*ListStaysResponse) ProtoMessage ¶
func (*ListStaysResponse) ProtoMessage()
func (*ListStaysResponse) ProtoReflect ¶
func (x *ListStaysResponse) ProtoReflect() protoreflect.Message
func (*ListStaysResponse) Reset ¶
func (x *ListStaysResponse) Reset()
func (*ListStaysResponse) String ¶
func (x *ListStaysResponse) String() string
type Stay ¶
type Stay struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` ReservationId string `protobuf:"bytes,3,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"` CheckIn *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=check_in,json=checkIn,proto3" json:"check_in,omitempty"` CheckOut *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=check_out,json=checkOut,proto3" json:"check_out,omitempty"` Note string `protobuf:"bytes,6,opt,name=note,proto3" json:"note,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Stay) Descriptor
deprecated
func (*Stay) GetCheckIn ¶
func (x *Stay) GetCheckIn() *timestamppb.Timestamp
func (*Stay) GetCheckOut ¶
func (x *Stay) GetCheckOut() *timestamppb.Timestamp
func (*Stay) GetCreatedAt ¶
func (x *Stay) GetCreatedAt() *timestamppb.Timestamp
func (*Stay) GetReservationId ¶
func (*Stay) GetUpdatedAt ¶
func (x *Stay) GetUpdatedAt() *timestamppb.Timestamp
func (*Stay) ProtoMessage ¶
func (*Stay) ProtoMessage()
func (*Stay) ProtoReflect ¶
func (x *Stay) ProtoReflect() protoreflect.Message
type StayServiceClient ¶
type StayServiceClient interface { ListStays(ctx context.Context, in *ListStaysRequest, opts ...grpc.CallOption) (*ListStaysResponse, error) CreateStay(ctx context.Context, in *CreateStayRequest, opts ...grpc.CallOption) (*CreateStayResponse, error) UpdateStay(ctx context.Context, in *UpdateStayRequest, opts ...grpc.CallOption) (*UpdateStayResponse, error) }
StayServiceClient is the client API for StayService 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 NewStayServiceClient ¶
func NewStayServiceClient(cc grpc.ClientConnInterface) StayServiceClient
type StayServiceServer ¶
type StayServiceServer interface { ListStays(context.Context, *ListStaysRequest) (*ListStaysResponse, error) CreateStay(context.Context, *CreateStayRequest) (*CreateStayResponse, error) UpdateStay(context.Context, *UpdateStayRequest) (*UpdateStayResponse, error) // contains filtered or unexported methods }
StayServiceServer is the server API for StayService service. All implementations must embed UnimplementedStayServiceServer for forward compatibility
type UnimplementedStayServiceServer ¶
type UnimplementedStayServiceServer struct { }
UnimplementedStayServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedStayServiceServer) CreateStay ¶
func (UnimplementedStayServiceServer) CreateStay(context.Context, *CreateStayRequest) (*CreateStayResponse, error)
func (UnimplementedStayServiceServer) ListStays ¶
func (UnimplementedStayServiceServer) ListStays(context.Context, *ListStaysRequest) (*ListStaysResponse, error)
func (UnimplementedStayServiceServer) UpdateStay ¶
func (UnimplementedStayServiceServer) UpdateStay(context.Context, *UpdateStayRequest) (*UpdateStayResponse, error)
type UnsafeStayServiceServer ¶
type UnsafeStayServiceServer interface {
// contains filtered or unexported methods
}
UnsafeStayServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to StayServiceServer will result in compilation errors.
type UpdateStayRequest ¶
type UpdateStayRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"` CheckOut *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=check_out,json=checkOut,proto3" json:"check_out,omitempty"` Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"` // contains filtered or unexported fields }
func (*UpdateStayRequest) Descriptor
deprecated
func (*UpdateStayRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStayRequest.ProtoReflect.Descriptor instead.
func (*UpdateStayRequest) GetCheckOut ¶
func (x *UpdateStayRequest) GetCheckOut() *timestamppb.Timestamp
func (*UpdateStayRequest) GetId ¶
func (x *UpdateStayRequest) GetId() string
func (*UpdateStayRequest) GetNote ¶
func (x *UpdateStayRequest) GetNote() string
func (*UpdateStayRequest) GetRoomId ¶
func (x *UpdateStayRequest) GetRoomId() string
func (*UpdateStayRequest) ProtoMessage ¶
func (*UpdateStayRequest) ProtoMessage()
func (*UpdateStayRequest) ProtoReflect ¶
func (x *UpdateStayRequest) ProtoReflect() protoreflect.Message
func (*UpdateStayRequest) Reset ¶
func (x *UpdateStayRequest) Reset()
func (*UpdateStayRequest) String ¶
func (x *UpdateStayRequest) String() string
type UpdateStayResponse ¶
type UpdateStayResponse struct { Stay *Stay `protobuf:"bytes,1,opt,name=stay,proto3" json:"stay,omitempty"` // contains filtered or unexported fields }
func (*UpdateStayResponse) Descriptor
deprecated
func (*UpdateStayResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateStayResponse.ProtoReflect.Descriptor instead.
func (*UpdateStayResponse) GetStay ¶
func (x *UpdateStayResponse) GetStay() *Stay
func (*UpdateStayResponse) ProtoMessage ¶
func (*UpdateStayResponse) ProtoMessage()
func (*UpdateStayResponse) ProtoReflect ¶
func (x *UpdateStayResponse) ProtoReflect() protoreflect.Message
func (*UpdateStayResponse) Reset ¶
func (x *UpdateStayResponse) Reset()
func (*UpdateStayResponse) String ¶
func (x *UpdateStayResponse) String() string