Documentation ¶
Index ¶
- Variables
- func RegisterProxyServer(s grpc.ServiceRegistrar, srv ProxyServer)
- type GetRentHousesByConditionsRequest
- func (*GetRentHousesByConditionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRentHousesByConditionsRequest) GetCity() string
- func (x *GetRentHousesByConditionsRequest) GetKeyword() string
- func (*GetRentHousesByConditionsRequest) ProtoMessage()
- func (x *GetRentHousesByConditionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRentHousesByConditionsRequest) Reset()
- func (x *GetRentHousesByConditionsRequest) String() string
- type GetRentHousesByTimestampRequest
- func (*GetRentHousesByTimestampRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRentHousesByTimestampRequest) GetEndTimestamp() *timestamppb.Timestamp
- func (x *GetRentHousesByTimestampRequest) GetStartTimestamp() *timestamppb.Timestamp
- func (*GetRentHousesByTimestampRequest) ProtoMessage()
- func (x *GetRentHousesByTimestampRequest) ProtoReflect() protoreflect.Message
- func (x *GetRentHousesByTimestampRequest) Reset()
- func (x *GetRentHousesByTimestampRequest) String() string
- type GetRentHousesResponse
- func (*GetRentHousesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRentHousesResponse) GetRentHouses() []*RentHouse
- func (x *GetRentHousesResponse) GetStatus() string
- func (x *GetRentHousesResponse) GetStatusMessage() string
- func (*GetRentHousesResponse) ProtoMessage()
- func (x *GetRentHousesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRentHousesResponse) Reset()
- func (x *GetRentHousesResponse) String() string
- type ProxyClient
- type ProxyServer
- type RentHouse
- func (*RentHouse) Descriptor() ([]byte, []int)deprecated
- func (x *RentHouse) GetArea() string
- func (x *RentHouse) GetCasesId() int64
- func (x *RentHouse) GetCid() int64
- func (x *RentHouse) GetCommunity() string
- func (x *RentHouse) GetContact() string
- func (x *RentHouse) GetDetailUrl() string
- func (x *RentHouse) GetDiscountPriceStr() string
- func (x *RentHouse) GetFloorStr() string
- func (x *RentHouse) GetHurry() int32
- func (x *RentHouse) GetIsCombine() int32
- func (x *RentHouse) GetIsSocial() int32
- func (x *RentHouse) GetIsVideo() int32
- func (x *RentHouse) GetIsVip() int32
- func (x *RentHouse) GetKindName() string
- func (x *RentHouse) GetLocation() string
- func (x *RentHouse) GetPhotoList() []string
- func (x *RentHouse) GetPostId() int64
- func (x *RentHouse) GetPreferred() int32
- func (x *RentHouse) GetPrice() int64
- func (x *RentHouse) GetPriceUnit() string
- func (x *RentHouse) GetRefreshTime() string
- func (x *RentHouse) GetRegionName() string
- func (x *RentHouse) GetRoleName() string
- func (x *RentHouse) GetRoomStr() string
- func (x *RentHouse) GetSectionName() string
- func (x *RentHouse) GetStreetName() string
- func (x *RentHouse) GetTitle() string
- func (x *RentHouse) GetType() int64
- func (x *RentHouse) GetYesterdayHit() int64
- func (*RentHouse) ProtoMessage()
- func (x *RentHouse) ProtoReflect() protoreflect.Message
- func (x *RentHouse) Reset()
- func (x *RentHouse) String() string
- type UnimplementedProxyServer
- type UnsafeProxyServer
Constants ¶
This section is empty.
Variables ¶
var File_rent_house_rent_house_proto protoreflect.FileDescriptor
var Proxy_ServiceDesc = grpc.ServiceDesc{ ServiceName: "rent_house.Proxy", HandlerType: (*ProxyServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetRentHousesByTimestamp", Handler: _Proxy_GetRentHousesByTimestamp_Handler, }, { MethodName: "GetRentHousesByConditions", Handler: _Proxy_GetRentHousesByConditions_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "rent-house/rent-house.proto", }
Proxy_ServiceDesc is the grpc.ServiceDesc for Proxy service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterProxyServer ¶
func RegisterProxyServer(s grpc.ServiceRegistrar, srv ProxyServer)
Types ¶
type GetRentHousesByConditionsRequest ¶
type GetRentHousesByConditionsRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` // contains filtered or unexported fields }
func (*GetRentHousesByConditionsRequest) Descriptor
deprecated
func (*GetRentHousesByConditionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRentHousesByConditionsRequest.ProtoReflect.Descriptor instead.
func (*GetRentHousesByConditionsRequest) GetCity ¶
func (x *GetRentHousesByConditionsRequest) GetCity() string
func (*GetRentHousesByConditionsRequest) GetKeyword ¶
func (x *GetRentHousesByConditionsRequest) GetKeyword() string
func (*GetRentHousesByConditionsRequest) ProtoMessage ¶
func (*GetRentHousesByConditionsRequest) ProtoMessage()
func (*GetRentHousesByConditionsRequest) ProtoReflect ¶
func (x *GetRentHousesByConditionsRequest) ProtoReflect() protoreflect.Message
func (*GetRentHousesByConditionsRequest) Reset ¶
func (x *GetRentHousesByConditionsRequest) Reset()
func (*GetRentHousesByConditionsRequest) String ¶
func (x *GetRentHousesByConditionsRequest) String() string
type GetRentHousesByTimestampRequest ¶
type GetRentHousesByTimestampRequest struct { StartTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"` EndTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_timestamp,json=endTimestamp,proto3" json:"end_timestamp,omitempty"` // contains filtered or unexported fields }
func (*GetRentHousesByTimestampRequest) Descriptor
deprecated
func (*GetRentHousesByTimestampRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRentHousesByTimestampRequest.ProtoReflect.Descriptor instead.
func (*GetRentHousesByTimestampRequest) GetEndTimestamp ¶
func (x *GetRentHousesByTimestampRequest) GetEndTimestamp() *timestamppb.Timestamp
func (*GetRentHousesByTimestampRequest) GetStartTimestamp ¶
func (x *GetRentHousesByTimestampRequest) GetStartTimestamp() *timestamppb.Timestamp
func (*GetRentHousesByTimestampRequest) ProtoMessage ¶
func (*GetRentHousesByTimestampRequest) ProtoMessage()
func (*GetRentHousesByTimestampRequest) ProtoReflect ¶
func (x *GetRentHousesByTimestampRequest) ProtoReflect() protoreflect.Message
func (*GetRentHousesByTimestampRequest) Reset ¶
func (x *GetRentHousesByTimestampRequest) Reset()
func (*GetRentHousesByTimestampRequest) String ¶
func (x *GetRentHousesByTimestampRequest) String() string
type GetRentHousesResponse ¶
type GetRentHousesResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` RentHouses []*RentHouse `protobuf:"bytes,3,rep,name=rent_houses,json=rentHouses,proto3" json:"rent_houses,omitempty"` // contains filtered or unexported fields }
func (*GetRentHousesResponse) Descriptor
deprecated
func (*GetRentHousesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRentHousesResponse.ProtoReflect.Descriptor instead.
func (*GetRentHousesResponse) GetRentHouses ¶
func (x *GetRentHousesResponse) GetRentHouses() []*RentHouse
func (*GetRentHousesResponse) GetStatus ¶
func (x *GetRentHousesResponse) GetStatus() string
func (*GetRentHousesResponse) GetStatusMessage ¶
func (x *GetRentHousesResponse) GetStatusMessage() string
func (*GetRentHousesResponse) ProtoMessage ¶
func (*GetRentHousesResponse) ProtoMessage()
func (*GetRentHousesResponse) ProtoReflect ¶
func (x *GetRentHousesResponse) ProtoReflect() protoreflect.Message
func (*GetRentHousesResponse) Reset ¶
func (x *GetRentHousesResponse) Reset()
func (*GetRentHousesResponse) String ¶
func (x *GetRentHousesResponse) String() string
type ProxyClient ¶
type ProxyClient interface { GetRentHousesByTimestamp(ctx context.Context, in *GetRentHousesByTimestampRequest, opts ...grpc.CallOption) (*GetRentHousesResponse, error) GetRentHousesByConditions(ctx context.Context, in *GetRentHousesByConditionsRequest, opts ...grpc.CallOption) (*GetRentHousesResponse, error) }
ProxyClient is the client API for Proxy 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 NewProxyClient ¶
func NewProxyClient(cc grpc.ClientConnInterface) ProxyClient
type ProxyServer ¶
type ProxyServer interface { GetRentHousesByTimestamp(context.Context, *GetRentHousesByTimestampRequest) (*GetRentHousesResponse, error) GetRentHousesByConditions(context.Context, *GetRentHousesByConditionsRequest) (*GetRentHousesResponse, error) // contains filtered or unexported methods }
ProxyServer is the server API for Proxy service. All implementations must embed UnimplementedProxyServer for forward compatibility
type RentHouse ¶
type RentHouse struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Type int64 `protobuf:"varint,2,opt,name=type,proto3" json:"type,omitempty"` PostId int64 `protobuf:"varint,3,opt,name=post_id,json=postId,proto3" json:"post_id,omitempty"` KindName string `protobuf:"bytes,4,opt,name=kind_name,json=kindName,proto3" json:"kind_name,omitempty"` RoomStr string `protobuf:"bytes,5,opt,name=room_str,json=roomStr,proto3" json:"room_str,omitempty"` FloorStr string `protobuf:"bytes,6,opt,name=floor_str,json=floorStr,proto3" json:"floor_str,omitempty"` Community string `protobuf:"bytes,7,opt,name=community,proto3" json:"community,omitempty"` Price int64 `protobuf:"varint,8,opt,name=price,proto3" json:"price,omitempty"` PriceUnit string `protobuf:"bytes,9,opt,name=price_unit,json=priceUnit,proto3" json:"price_unit,omitempty"` PhotoList []string `protobuf:"bytes,10,rep,name=photo_list,json=photoList,proto3" json:"photo_list,omitempty"` RegionName string `protobuf:"bytes,11,opt,name=region_name,json=regionName,proto3" json:"region_name,omitempty"` SectionName string `protobuf:"bytes,12,opt,name=section_name,json=sectionName,proto3" json:"section_name,omitempty"` StreetName string `protobuf:"bytes,13,opt,name=street_name,json=streetName,proto3" json:"street_name,omitempty"` Location string `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty"` Area string `protobuf:"bytes,15,opt,name=area,proto3" json:"area,omitempty"` RoleName string `protobuf:"bytes,16,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` Contact string `protobuf:"bytes,17,opt,name=contact,proto3" json:"contact,omitempty"` RefreshTime string `protobuf:"bytes,18,opt,name=refresh_time,json=refreshTime,proto3" json:"refresh_time,omitempty"` YesterdayHit int64 `protobuf:"varint,19,opt,name=yesterday_hit,json=yesterdayHit,proto3" json:"yesterday_hit,omitempty"` IsVip int32 `protobuf:"varint,20,opt,name=is_vip,json=isVip,proto3" json:"is_vip,omitempty"` IsCombine int32 `protobuf:"varint,21,opt,name=is_combine,json=isCombine,proto3" json:"is_combine,omitempty"` Hurry int32 `protobuf:"varint,22,opt,name=hurry,proto3" json:"hurry,omitempty"` IsSocial int32 `protobuf:"varint,23,opt,name=is_social,json=isSocial,proto3" json:"is_social,omitempty"` DiscountPriceStr string `protobuf:"bytes,24,opt,name=discount_price_str,json=discountPriceStr,proto3" json:"discount_price_str,omitempty"` CasesId int64 `protobuf:"varint,25,opt,name=cases_id,json=casesId,proto3" json:"cases_id,omitempty"` IsVideo int32 `protobuf:"varint,26,opt,name=is_video,json=isVideo,proto3" json:"is_video,omitempty"` Preferred int32 `protobuf:"varint,27,opt,name=preferred,proto3" json:"preferred,omitempty"` Cid int64 `protobuf:"varint,28,opt,name=cid,proto3" json:"cid,omitempty"` DetailUrl string `protobuf:"bytes,29,opt,name=detail_url,json=detailUrl,proto3" json:"detail_url,omitempty"` // contains filtered or unexported fields }
func (*RentHouse) Descriptor
deprecated
func (*RentHouse) GetCasesId ¶
func (*RentHouse) GetCommunity ¶
func (*RentHouse) GetContact ¶
func (*RentHouse) GetDetailUrl ¶
func (*RentHouse) GetDiscountPriceStr ¶
func (*RentHouse) GetFloorStr ¶
func (*RentHouse) GetIsCombine ¶
func (*RentHouse) GetIsSocial ¶
func (*RentHouse) GetIsVideo ¶
func (*RentHouse) GetKindName ¶
func (*RentHouse) GetLocation ¶
func (*RentHouse) GetPhotoList ¶
func (*RentHouse) GetPreferred ¶
func (*RentHouse) GetPriceUnit ¶
func (*RentHouse) GetRefreshTime ¶
func (*RentHouse) GetRegionName ¶
func (*RentHouse) GetRoleName ¶
func (*RentHouse) GetRoomStr ¶
func (*RentHouse) GetSectionName ¶
func (*RentHouse) GetStreetName ¶
func (*RentHouse) GetYesterdayHit ¶
func (*RentHouse) ProtoMessage ¶
func (*RentHouse) ProtoMessage()
func (*RentHouse) ProtoReflect ¶
func (x *RentHouse) ProtoReflect() protoreflect.Message
type UnimplementedProxyServer ¶
type UnimplementedProxyServer struct { }
UnimplementedProxyServer must be embedded to have forward compatible implementations.
func (UnimplementedProxyServer) GetRentHousesByConditions ¶
func (UnimplementedProxyServer) GetRentHousesByConditions(context.Context, *GetRentHousesByConditionsRequest) (*GetRentHousesResponse, error)
func (UnimplementedProxyServer) GetRentHousesByTimestamp ¶
func (UnimplementedProxyServer) GetRentHousesByTimestamp(context.Context, *GetRentHousesByTimestampRequest) (*GetRentHousesResponse, error)
type UnsafeProxyServer ¶
type UnsafeProxyServer interface {
// contains filtered or unexported methods
}
UnsafeProxyServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProxyServer will result in compilation errors.