rent_house

package
v0.0.0-...-8064f01 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_rent_house_rent_house_proto protoreflect.FileDescriptor
View Source
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 (*GetRentHousesByConditionsRequest) GetKeyword

func (x *GetRentHousesByConditionsRequest) GetKeyword() string

func (*GetRentHousesByConditionsRequest) ProtoMessage

func (*GetRentHousesByConditionsRequest) ProtoMessage()

func (*GetRentHousesByConditionsRequest) ProtoReflect

func (*GetRentHousesByConditionsRequest) Reset

func (*GetRentHousesByConditionsRequest) 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 (*GetRentHousesByTimestampRequest) GetStartTimestamp

func (x *GetRentHousesByTimestampRequest) GetStartTimestamp() *timestamppb.Timestamp

func (*GetRentHousesByTimestampRequest) ProtoMessage

func (*GetRentHousesByTimestampRequest) ProtoMessage()

func (*GetRentHousesByTimestampRequest) ProtoReflect

func (*GetRentHousesByTimestampRequest) Reset

func (*GetRentHousesByTimestampRequest) 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) Descriptor() ([]byte, []int)

Deprecated: Use RentHouse.ProtoReflect.Descriptor instead.

func (*RentHouse) GetArea

func (x *RentHouse) GetArea() string

func (*RentHouse) GetCasesId

func (x *RentHouse) GetCasesId() int64

func (*RentHouse) GetCid

func (x *RentHouse) GetCid() int64

func (*RentHouse) GetCommunity

func (x *RentHouse) GetCommunity() string

func (*RentHouse) GetContact

func (x *RentHouse) GetContact() string

func (*RentHouse) GetDetailUrl

func (x *RentHouse) GetDetailUrl() string

func (*RentHouse) GetDiscountPriceStr

func (x *RentHouse) GetDiscountPriceStr() string

func (*RentHouse) GetFloorStr

func (x *RentHouse) GetFloorStr() string

func (*RentHouse) GetHurry

func (x *RentHouse) GetHurry() int32

func (*RentHouse) GetIsCombine

func (x *RentHouse) GetIsCombine() int32

func (*RentHouse) GetIsSocial

func (x *RentHouse) GetIsSocial() int32

func (*RentHouse) GetIsVideo

func (x *RentHouse) GetIsVideo() int32

func (*RentHouse) GetIsVip

func (x *RentHouse) GetIsVip() int32

func (*RentHouse) GetKindName

func (x *RentHouse) GetKindName() string

func (*RentHouse) GetLocation

func (x *RentHouse) GetLocation() string

func (*RentHouse) GetPhotoList

func (x *RentHouse) GetPhotoList() []string

func (*RentHouse) GetPostId

func (x *RentHouse) GetPostId() int64

func (*RentHouse) GetPreferred

func (x *RentHouse) GetPreferred() int32

func (*RentHouse) GetPrice

func (x *RentHouse) GetPrice() int64

func (*RentHouse) GetPriceUnit

func (x *RentHouse) GetPriceUnit() string

func (*RentHouse) GetRefreshTime

func (x *RentHouse) GetRefreshTime() string

func (*RentHouse) GetRegionName

func (x *RentHouse) GetRegionName() string

func (*RentHouse) GetRoleName

func (x *RentHouse) GetRoleName() string

func (*RentHouse) GetRoomStr

func (x *RentHouse) GetRoomStr() string

func (*RentHouse) GetSectionName

func (x *RentHouse) GetSectionName() string

func (*RentHouse) GetStreetName

func (x *RentHouse) GetStreetName() string

func (*RentHouse) GetTitle

func (x *RentHouse) GetTitle() string

func (*RentHouse) GetType

func (x *RentHouse) GetType() int64

func (*RentHouse) GetYesterdayHit

func (x *RentHouse) GetYesterdayHit() int64

func (*RentHouse) ProtoMessage

func (*RentHouse) ProtoMessage()

func (*RentHouse) ProtoReflect

func (x *RentHouse) ProtoReflect() protoreflect.Message

func (*RentHouse) Reset

func (x *RentHouse) Reset()

func (*RentHouse) String

func (x *RentHouse) String() string

type UnimplementedProxyServer

type UnimplementedProxyServer struct {
}

UnimplementedProxyServer must be embedded to have forward compatible implementations.

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.

Jump to

Keyboard shortcuts

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