Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterHouseSvcServer(s grpc.ServiceRegistrar, srv HouseSvcServer)
- func RegisterUserSvcServer(s grpc.ServiceRegistrar, srv UserSvcServer)
- type CreateHouseReply
- type CreateHouseRequest
- type Data
- type DeleteHouseReply
- type DeleteHouseRequest
- type GetHouseReply
- type GetHouseRequest
- type GetUserReply
- func (*GetUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserReply) GetCode() int64
- func (x *GetUserReply) GetData() *User
- func (x *GetUserReply) GetMsg() string
- func (x *GetUserReply) GetTimestamp() string
- func (*GetUserReply) ProtoMessage()
- func (x *GetUserReply) ProtoReflect() protoreflect.Message
- func (x *GetUserReply) Reset()
- func (x *GetUserReply) String() string
- type GetUserRequest
- func (*GetUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetUserRequest) GetMobile() string
- func (x *GetUserRequest) GetUserId() int64
- func (*GetUserRequest) ProtoMessage()
- func (x *GetUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetUserRequest) Reset()
- func (x *GetUserRequest) String() string
- type House
- func (*House) Descriptor() ([]byte, []int)deprecated
- func (x *House) GetCoverUrl() string
- func (x *House) GetId() int32
- func (x *House) GetPrice() string
- func (x *House) GetTitle() string
- func (*House) ProtoMessage()
- func (x *House) ProtoReflect() protoreflect.Message
- func (x *House) Reset()
- func (x *House) String() string
- type HouseSvcClient
- type HouseSvcServer
- type ListUserReply
- func (*ListUserReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserReply) GetCode() int64
- func (x *ListUserReply) GetData() *Data
- func (x *ListUserReply) GetMsg() string
- func (x *ListUserReply) GetTimestamp() string
- func (*ListUserReply) ProtoMessage()
- func (x *ListUserReply) ProtoReflect() protoreflect.Message
- func (x *ListUserReply) Reset()
- func (x *ListUserReply) String() string
- type ListUserRequest
- func (*ListUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListUserRequest) GetPage() int64
- func (x *ListUserRequest) GetPageSize() int64
- func (*ListUserRequest) ProtoMessage()
- func (x *ListUserRequest) ProtoReflect() protoreflect.Message
- func (x *ListUserRequest) Reset()
- func (x *ListUserRequest) String() string
- type Meta
- func (*Meta) Descriptor() ([]byte, []int)deprecated
- func (x *Meta) GetCurrentPage() int64
- func (x *Meta) GetHasNext() int64
- func (x *Meta) GetPerPage() int64
- func (x *Meta) GetTotal() int64
- func (*Meta) ProtoMessage()
- func (x *Meta) ProtoReflect() protoreflect.Message
- func (x *Meta) Reset()
- func (x *Meta) String() string
- type PaginatedListListHouseReply
- func (*PaginatedListListHouseReply) Descriptor() ([]byte, []int)deprecated
- func (x *PaginatedListListHouseReply) GetCode() int32
- func (x *PaginatedListListHouseReply) GetData() []*House
- func (x *PaginatedListListHouseReply) GetMsg() string
- func (x *PaginatedListListHouseReply) GetTimestamp() string
- func (*PaginatedListListHouseReply) ProtoMessage()
- func (x *PaginatedListListHouseReply) ProtoReflect() protoreflect.Message
- func (x *PaginatedListListHouseReply) Reset()
- func (x *PaginatedListListHouseReply) String() string
- type PagintatedListHouseRequest
- func (*PagintatedListHouseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PagintatedListHouseRequest) GetPage() int32
- func (x *PagintatedListHouseRequest) GetPageSize() int32
- func (x *PagintatedListHouseRequest) GetType() int32
- func (*PagintatedListHouseRequest) ProtoMessage()
- func (x *PagintatedListHouseRequest) ProtoReflect() protoreflect.Message
- func (x *PagintatedListHouseRequest) Reset()
- func (x *PagintatedListHouseRequest) String() string
- type UnimplementedHouseSvcServer
- func (UnimplementedHouseSvcServer) CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error)
- func (UnimplementedHouseSvcServer) DeleteHouse(context.Context, *DeleteHouseRequest) (*DeleteHouseReply, error)
- func (UnimplementedHouseSvcServer) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error)
- func (UnimplementedHouseSvcServer) PaginatedListHouse(context.Context, *PagintatedListHouseRequest) (*PaginatedListListHouseReply, error)
- func (UnimplementedHouseSvcServer) UpdateHouse(context.Context, *UpdateHouseRequest) (*UpdateHouseReply, error)
- type UnimplementedUserSvcServer
- func (UnimplementedUserSvcServer) GetPaginatedUsers(context.Context, *ListUserRequest) (*ListUserReply, error)
- func (UnimplementedUserSvcServer) GetUserByMobile(context.Context, *GetUserRequest) (*GetUserReply, error)
- func (UnimplementedUserSvcServer) GetUserByUserId(context.Context, *GetUserRequest) (*GetUserReply, error)
- type UnsafeHouseSvcServer
- type UnsafeUserSvcServer
- type UpdateHouseReply
- type UpdateHouseRequest
- type User
- type UserSvcClient
- type UserSvcServer
Constants ¶
const ( HouseSvc_CreateHouse_FullMethodName = "/api.property.v1.HouseSvc/CreateHouse" HouseSvc_UpdateHouse_FullMethodName = "/api.property.v1.HouseSvc/UpdateHouse" HouseSvc_DeleteHouse_FullMethodName = "/api.property.v1.HouseSvc/DeleteHouse" HouseSvc_GetHouse_FullMethodName = "/api.property.v1.HouseSvc/GetHouse" HouseSvc_PaginatedListHouse_FullMethodName = "/api.property.v1.HouseSvc/PaginatedListHouse" )
const ( UserSvc_GetUserByUserId_FullMethodName = "/api.property.v1.UserSvc/GetUserByUserId" UserSvc_GetUserByMobile_FullMethodName = "/api.property.v1.UserSvc/GetUserByMobile" UserSvc_GetPaginatedUsers_FullMethodName = "/api.property.v1.UserSvc/GetPaginatedUsers" )
Variables ¶
var File_property_v1_house_proto protoreflect.FileDescriptor
var File_property_v1_user_proto protoreflect.FileDescriptor
var HouseSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.property.v1.HouseSvc", HandlerType: (*HouseSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateHouse", Handler: _HouseSvc_CreateHouse_Handler, }, { MethodName: "UpdateHouse", Handler: _HouseSvc_UpdateHouse_Handler, }, { MethodName: "DeleteHouse", Handler: _HouseSvc_DeleteHouse_Handler, }, { MethodName: "GetHouse", Handler: _HouseSvc_GetHouse_Handler, }, { MethodName: "PaginatedListHouse", Handler: _HouseSvc_PaginatedListHouse_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "property/v1/house.proto", }
HouseSvc_ServiceDesc is the grpc.ServiceDesc for HouseSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserSvc_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.property.v1.UserSvc", HandlerType: (*UserSvcServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUserByUserId", Handler: _UserSvc_GetUserByUserId_Handler, }, { MethodName: "GetUserByMobile", Handler: _UserSvc_GetUserByMobile_Handler, }, { MethodName: "GetPaginatedUsers", Handler: _UserSvc_GetPaginatedUsers_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "property/v1/user.proto", }
UserSvc_ServiceDesc is the grpc.ServiceDesc for UserSvc service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHouseSvcServer ¶
func RegisterHouseSvcServer(s grpc.ServiceRegistrar, srv HouseSvcServer)
func RegisterUserSvcServer ¶
func RegisterUserSvcServer(s grpc.ServiceRegistrar, srv UserSvcServer)
Types ¶
type CreateHouseReply ¶
type CreateHouseReply struct {
// contains filtered or unexported fields
}
func (*CreateHouseReply) Descriptor
deprecated
func (*CreateHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseReply.ProtoReflect.Descriptor instead.
func (*CreateHouseReply) ProtoMessage ¶
func (*CreateHouseReply) ProtoMessage()
func (*CreateHouseReply) ProtoReflect ¶
func (x *CreateHouseReply) ProtoReflect() protoreflect.Message
func (*CreateHouseReply) Reset ¶
func (x *CreateHouseReply) Reset()
func (*CreateHouseReply) String ¶
func (x *CreateHouseReply) String() string
type CreateHouseRequest ¶
type CreateHouseRequest struct {
// contains filtered or unexported fields
}
func (*CreateHouseRequest) Descriptor
deprecated
func (*CreateHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseRequest.ProtoReflect.Descriptor instead.
func (*CreateHouseRequest) ProtoMessage ¶
func (*CreateHouseRequest) ProtoMessage()
func (*CreateHouseRequest) ProtoReflect ¶
func (x *CreateHouseRequest) ProtoReflect() protoreflect.Message
func (*CreateHouseRequest) Reset ¶
func (x *CreateHouseRequest) Reset()
func (*CreateHouseRequest) String ¶
func (x *CreateHouseRequest) String() string
type Data ¶
type Data struct { Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` Meta *Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"` // contains filtered or unexported fields }
func (*Data) Descriptor
deprecated
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) ProtoReflect ¶
func (x *Data) ProtoReflect() protoreflect.Message
type DeleteHouseReply ¶
type DeleteHouseReply struct {
// contains filtered or unexported fields
}
func (*DeleteHouseReply) Descriptor
deprecated
func (*DeleteHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHouseReply.ProtoReflect.Descriptor instead.
func (*DeleteHouseReply) ProtoMessage ¶
func (*DeleteHouseReply) ProtoMessage()
func (*DeleteHouseReply) ProtoReflect ¶
func (x *DeleteHouseReply) ProtoReflect() protoreflect.Message
func (*DeleteHouseReply) Reset ¶
func (x *DeleteHouseReply) Reset()
func (*DeleteHouseReply) String ¶
func (x *DeleteHouseReply) String() string
type DeleteHouseRequest ¶
type DeleteHouseRequest struct {
// contains filtered or unexported fields
}
func (*DeleteHouseRequest) Descriptor
deprecated
func (*DeleteHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteHouseRequest.ProtoReflect.Descriptor instead.
func (*DeleteHouseRequest) ProtoMessage ¶
func (*DeleteHouseRequest) ProtoMessage()
func (*DeleteHouseRequest) ProtoReflect ¶
func (x *DeleteHouseRequest) ProtoReflect() protoreflect.Message
func (*DeleteHouseRequest) Reset ¶
func (x *DeleteHouseRequest) Reset()
func (*DeleteHouseRequest) String ¶
func (x *DeleteHouseRequest) String() string
type GetHouseReply ¶
type GetHouseReply struct {
// contains filtered or unexported fields
}
func (*GetHouseReply) Descriptor
deprecated
func (*GetHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseReply.ProtoReflect.Descriptor instead.
func (*GetHouseReply) ProtoMessage ¶
func (*GetHouseReply) ProtoMessage()
func (*GetHouseReply) ProtoReflect ¶
func (x *GetHouseReply) ProtoReflect() protoreflect.Message
func (*GetHouseReply) Reset ¶
func (x *GetHouseReply) Reset()
func (*GetHouseReply) String ¶
func (x *GetHouseReply) String() string
type GetHouseRequest ¶
type GetHouseRequest struct {
// contains filtered or unexported fields
}
func (*GetHouseRequest) Descriptor
deprecated
func (*GetHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseRequest.ProtoReflect.Descriptor instead.
func (*GetHouseRequest) ProtoMessage ¶
func (*GetHouseRequest) ProtoMessage()
func (*GetHouseRequest) ProtoReflect ¶
func (x *GetHouseRequest) ProtoReflect() protoreflect.Message
func (*GetHouseRequest) Reset ¶
func (x *GetHouseRequest) Reset()
func (*GetHouseRequest) String ¶
func (x *GetHouseRequest) String() string
type GetUserReply ¶
type GetUserReply struct { Data *User `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Code int64 `protobuf:"varint,2,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetCode ¶
func (x *GetUserReply) GetCode() int64
func (*GetUserReply) GetData ¶
func (x *GetUserReply) GetData() *User
func (*GetUserReply) GetMsg ¶
func (x *GetUserReply) GetMsg() string
func (*GetUserReply) GetTimestamp ¶
func (x *GetUserReply) GetTimestamp() string
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetMobile ¶
func (x *GetUserRequest) GetMobile() string
func (*GetUserRequest) GetUserId ¶
func (x *GetUserRequest) GetUserId() int64
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type House ¶
type House struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Price string `protobuf:"bytes,3,opt,name=price,proto3" json:"price,omitempty"` CoverUrl string `protobuf:"bytes,4,opt,name=cover_url,json=coverUrl,proto3" json:"cover_url,omitempty"` // contains filtered or unexported fields }
func (*House) Descriptor
deprecated
func (*House) GetCoverUrl ¶
func (*House) ProtoMessage ¶
func (*House) ProtoMessage()
func (*House) ProtoReflect ¶
func (x *House) ProtoReflect() protoreflect.Message
type HouseSvcClient ¶
type HouseSvcClient interface { CreateHouse(ctx context.Context, in *CreateHouseRequest, opts ...grpc.CallOption) (*CreateHouseReply, error) UpdateHouse(ctx context.Context, in *UpdateHouseRequest, opts ...grpc.CallOption) (*UpdateHouseReply, error) DeleteHouse(ctx context.Context, in *DeleteHouseRequest, opts ...grpc.CallOption) (*DeleteHouseReply, error) GetHouse(ctx context.Context, in *GetHouseRequest, opts ...grpc.CallOption) (*GetHouseReply, error) PaginatedListHouse(ctx context.Context, in *PagintatedListHouseRequest, opts ...grpc.CallOption) (*PaginatedListListHouseReply, error) }
HouseSvcClient is the client API for HouseSvc 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 NewHouseSvcClient ¶
func NewHouseSvcClient(cc grpc.ClientConnInterface) HouseSvcClient
type HouseSvcServer ¶
type HouseSvcServer interface { CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error) UpdateHouse(context.Context, *UpdateHouseRequest) (*UpdateHouseReply, error) DeleteHouse(context.Context, *DeleteHouseRequest) (*DeleteHouseReply, error) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error) PaginatedListHouse(context.Context, *PagintatedListHouseRequest) (*PaginatedListListHouseReply, error) // contains filtered or unexported methods }
HouseSvcServer is the server API for HouseSvc service. All implementations must embed UnimplementedHouseSvcServer for forward compatibility
type ListUserReply ¶
type ListUserReply struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data *Data `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListUserReply) Descriptor
deprecated
func (*ListUserReply) Descriptor() ([]byte, []int)
Deprecated: Use ListUserReply.ProtoReflect.Descriptor instead.
func (*ListUserReply) GetCode ¶
func (x *ListUserReply) GetCode() int64
func (*ListUserReply) GetData ¶
func (x *ListUserReply) GetData() *Data
func (*ListUserReply) GetMsg ¶
func (x *ListUserReply) GetMsg() string
func (*ListUserReply) GetTimestamp ¶
func (x *ListUserReply) GetTimestamp() string
func (*ListUserReply) ProtoMessage ¶
func (*ListUserReply) ProtoMessage()
func (*ListUserReply) ProtoReflect ¶
func (x *ListUserReply) ProtoReflect() protoreflect.Message
func (*ListUserReply) Reset ¶
func (x *ListUserReply) Reset()
func (*ListUserReply) String ¶
func (x *ListUserReply) String() string
type ListUserRequest ¶
type ListUserRequest struct { Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListUserRequest) Descriptor
deprecated
func (*ListUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListUserRequest.ProtoReflect.Descriptor instead.
func (*ListUserRequest) GetPage ¶
func (x *ListUserRequest) GetPage() int64
func (*ListUserRequest) GetPageSize ¶
func (x *ListUserRequest) GetPageSize() int64
func (*ListUserRequest) ProtoMessage ¶
func (*ListUserRequest) ProtoMessage()
func (*ListUserRequest) ProtoReflect ¶
func (x *ListUserRequest) ProtoReflect() protoreflect.Message
func (*ListUserRequest) Reset ¶
func (x *ListUserRequest) Reset()
func (*ListUserRequest) String ¶
func (x *ListUserRequest) String() string
type Meta ¶
type Meta struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` CurrentPage int64 `protobuf:"varint,2,opt,name=current_page,json=currentPage,proto3" json:"current_page,omitempty"` PerPage int64 `protobuf:"varint,3,opt,name=per_page,json=perPage,proto3" json:"per_page,omitempty"` HasNext int64 `protobuf:"varint,4,opt,name=has_next,json=hasNext,proto3" json:"has_next,omitempty"` // contains filtered or unexported fields }
func (*Meta) Descriptor
deprecated
func (*Meta) GetCurrentPage ¶
func (*Meta) GetHasNext ¶
func (*Meta) GetPerPage ¶
func (*Meta) ProtoMessage ¶
func (*Meta) ProtoMessage()
func (*Meta) ProtoReflect ¶
func (x *Meta) ProtoReflect() protoreflect.Message
type PaginatedListListHouseReply ¶
type PaginatedListListHouseReply struct { Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data []*House `protobuf:"bytes,4,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*PaginatedListListHouseReply) Descriptor
deprecated
func (*PaginatedListListHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use PaginatedListListHouseReply.ProtoReflect.Descriptor instead.
func (*PaginatedListListHouseReply) GetCode ¶
func (x *PaginatedListListHouseReply) GetCode() int32
func (*PaginatedListListHouseReply) GetData ¶
func (x *PaginatedListListHouseReply) GetData() []*House
func (*PaginatedListListHouseReply) GetMsg ¶
func (x *PaginatedListListHouseReply) GetMsg() string
func (*PaginatedListListHouseReply) GetTimestamp ¶
func (x *PaginatedListListHouseReply) GetTimestamp() string
func (*PaginatedListListHouseReply) ProtoMessage ¶
func (*PaginatedListListHouseReply) ProtoMessage()
func (*PaginatedListListHouseReply) ProtoReflect ¶
func (x *PaginatedListListHouseReply) ProtoReflect() protoreflect.Message
func (*PaginatedListListHouseReply) Reset ¶
func (x *PaginatedListListHouseReply) Reset()
func (*PaginatedListListHouseReply) String ¶
func (x *PaginatedListListHouseReply) String() string
type PagintatedListHouseRequest ¶
type PagintatedListHouseRequest struct { Type int32 `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"` Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*PagintatedListHouseRequest) Descriptor
deprecated
func (*PagintatedListHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use PagintatedListHouseRequest.ProtoReflect.Descriptor instead.
func (*PagintatedListHouseRequest) GetPage ¶
func (x *PagintatedListHouseRequest) GetPage() int32
func (*PagintatedListHouseRequest) GetPageSize ¶
func (x *PagintatedListHouseRequest) GetPageSize() int32
func (*PagintatedListHouseRequest) GetType ¶
func (x *PagintatedListHouseRequest) GetType() int32
func (*PagintatedListHouseRequest) ProtoMessage ¶
func (*PagintatedListHouseRequest) ProtoMessage()
func (*PagintatedListHouseRequest) ProtoReflect ¶
func (x *PagintatedListHouseRequest) ProtoReflect() protoreflect.Message
func (*PagintatedListHouseRequest) Reset ¶
func (x *PagintatedListHouseRequest) Reset()
func (*PagintatedListHouseRequest) String ¶
func (x *PagintatedListHouseRequest) String() string
type UnimplementedHouseSvcServer ¶
type UnimplementedHouseSvcServer struct { }
UnimplementedHouseSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedHouseSvcServer) CreateHouse ¶
func (UnimplementedHouseSvcServer) CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error)
func (UnimplementedHouseSvcServer) DeleteHouse ¶
func (UnimplementedHouseSvcServer) DeleteHouse(context.Context, *DeleteHouseRequest) (*DeleteHouseReply, error)
func (UnimplementedHouseSvcServer) GetHouse ¶
func (UnimplementedHouseSvcServer) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error)
func (UnimplementedHouseSvcServer) PaginatedListHouse ¶
func (UnimplementedHouseSvcServer) PaginatedListHouse(context.Context, *PagintatedListHouseRequest) (*PaginatedListListHouseReply, error)
func (UnimplementedHouseSvcServer) UpdateHouse ¶
func (UnimplementedHouseSvcServer) UpdateHouse(context.Context, *UpdateHouseRequest) (*UpdateHouseReply, error)
type UnimplementedUserSvcServer ¶
type UnimplementedUserSvcServer struct { }
UnimplementedUserSvcServer must be embedded to have forward compatible implementations.
func (UnimplementedUserSvcServer) GetPaginatedUsers ¶
func (UnimplementedUserSvcServer) GetPaginatedUsers(context.Context, *ListUserRequest) (*ListUserReply, error)
func (UnimplementedUserSvcServer) GetUserByMobile ¶
func (UnimplementedUserSvcServer) GetUserByMobile(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserSvcServer) GetUserByUserId ¶
func (UnimplementedUserSvcServer) GetUserByUserId(context.Context, *GetUserRequest) (*GetUserReply, error)
type UnsafeHouseSvcServer ¶
type UnsafeHouseSvcServer interface {
// contains filtered or unexported methods
}
UnsafeHouseSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HouseSvcServer will result in compilation errors.
type UnsafeUserSvcServer ¶
type UnsafeUserSvcServer interface {
// contains filtered or unexported methods
}
UnsafeUserSvcServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserSvcServer will result in compilation errors.
type UpdateHouseReply ¶
type UpdateHouseReply struct {
// contains filtered or unexported fields
}
func (*UpdateHouseReply) Descriptor
deprecated
func (*UpdateHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHouseReply.ProtoReflect.Descriptor instead.
func (*UpdateHouseReply) ProtoMessage ¶
func (*UpdateHouseReply) ProtoMessage()
func (*UpdateHouseReply) ProtoReflect ¶
func (x *UpdateHouseReply) ProtoReflect() protoreflect.Message
func (*UpdateHouseReply) Reset ¶
func (x *UpdateHouseReply) Reset()
func (*UpdateHouseReply) String ¶
func (x *UpdateHouseReply) String() string
type UpdateHouseRequest ¶
type UpdateHouseRequest struct {
// contains filtered or unexported fields
}
func (*UpdateHouseRequest) Descriptor
deprecated
func (*UpdateHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHouseRequest.ProtoReflect.Descriptor instead.
func (*UpdateHouseRequest) ProtoMessage ¶
func (*UpdateHouseRequest) ProtoMessage()
func (*UpdateHouseRequest) ProtoReflect ¶
func (x *UpdateHouseRequest) ProtoReflect() protoreflect.Message
func (*UpdateHouseRequest) Reset ¶
func (x *UpdateHouseRequest) Reset()
func (*UpdateHouseRequest) String ¶
func (x *UpdateHouseRequest) String() string
type User ¶
type User struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetUsername ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserSvcClient ¶
type UserSvcClient interface { GetUserByUserId(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) GetUserByMobile(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) GetPaginatedUsers(ctx context.Context, in *ListUserRequest, opts ...grpc.CallOption) (*ListUserReply, error) }
UserSvcClient is the client API for UserSvc 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 NewUserSvcClient ¶
func NewUserSvcClient(cc grpc.ClientConnInterface) UserSvcClient
type UserSvcServer ¶
type UserSvcServer interface { GetUserByUserId(context.Context, *GetUserRequest) (*GetUserReply, error) GetUserByMobile(context.Context, *GetUserRequest) (*GetUserReply, error) GetPaginatedUsers(context.Context, *ListUserRequest) (*ListUserReply, error) // contains filtered or unexported methods }
UserSvcServer is the server API for UserSvc service. All implementations must embed UnimplementedUserSvcServer for forward compatibility