Documentation ¶
Index ¶
- Variables
- func RegisterHouseHTTPServer(s *http.Server, srv HouseHTTPServer)
- func RegisterHouseServer(s grpc.ServiceRegistrar, srv HouseServer)
- type CreateHouseReply
- func (*CreateHouseReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateHouseReply) GetId() int64
- func (*CreateHouseReply) ProtoMessage()
- func (x *CreateHouseReply) ProtoReflect() protoreflect.Message
- func (x *CreateHouseReply) Reset()
- func (x *CreateHouseReply) String() string
- func (m *CreateHouseReply) Validate() error
- func (m *CreateHouseReply) ValidateAll() error
- type CreateHouseReplyMultiError
- type CreateHouseReplyValidationError
- func (e CreateHouseReplyValidationError) Cause() error
- func (e CreateHouseReplyValidationError) Error() string
- func (e CreateHouseReplyValidationError) ErrorName() string
- func (e CreateHouseReplyValidationError) Field() string
- func (e CreateHouseReplyValidationError) Key() bool
- func (e CreateHouseReplyValidationError) Reason() string
- type CreateHouseRequest
- func (*CreateHouseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateHouseRequest) GetCommunity() string
- func (x *CreateHouseRequest) GetFloorCount() int32
- func (x *CreateHouseRequest) GetHallCount() int32
- func (x *CreateHouseRequest) GetImage() string
- func (x *CreateHouseRequest) GetKitchenCount() int32
- func (x *CreateHouseRequest) GetRoomCount() int32
- func (x *CreateHouseRequest) GetTitle() string
- func (x *CreateHouseRequest) GetToiletCount() int32
- func (*CreateHouseRequest) ProtoMessage()
- func (x *CreateHouseRequest) ProtoReflect() protoreflect.Message
- func (x *CreateHouseRequest) Reset()
- func (x *CreateHouseRequest) String() string
- func (m *CreateHouseRequest) Validate() error
- func (m *CreateHouseRequest) ValidateAll() error
- type CreateHouseRequestMultiError
- type CreateHouseRequestValidationError
- func (e CreateHouseRequestValidationError) Cause() error
- func (e CreateHouseRequestValidationError) Error() string
- func (e CreateHouseRequestValidationError) ErrorName() string
- func (e CreateHouseRequestValidationError) Field() string
- func (e CreateHouseRequestValidationError) Key() bool
- func (e CreateHouseRequestValidationError) Reason() string
- type GetHouseReply
- func (*GetHouseReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetHouseReply) GetCommunity() string
- func (x *GetHouseReply) GetFloorCount() int32
- func (x *GetHouseReply) GetHallCount() int32
- func (x *GetHouseReply) GetId() int64
- func (x *GetHouseReply) GetKitchenCount() int32
- func (x *GetHouseReply) GetRoomCount() int32
- func (x *GetHouseReply) GetTitle() string
- func (x *GetHouseReply) GetToiletCount() int32
- func (*GetHouseReply) ProtoMessage()
- func (x *GetHouseReply) ProtoReflect() protoreflect.Message
- func (x *GetHouseReply) Reset()
- func (x *GetHouseReply) String() string
- func (m *GetHouseReply) Validate() error
- func (m *GetHouseReply) ValidateAll() error
- type GetHouseReplyMultiError
- type GetHouseReplyValidationError
- func (e GetHouseReplyValidationError) Cause() error
- func (e GetHouseReplyValidationError) Error() string
- func (e GetHouseReplyValidationError) ErrorName() string
- func (e GetHouseReplyValidationError) Field() string
- func (e GetHouseReplyValidationError) Key() bool
- func (e GetHouseReplyValidationError) Reason() string
- type GetHouseRequest
- func (*GetHouseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHouseRequest) GetId() int64
- func (*GetHouseRequest) ProtoMessage()
- func (x *GetHouseRequest) ProtoReflect() protoreflect.Message
- func (x *GetHouseRequest) Reset()
- func (x *GetHouseRequest) String() string
- func (m *GetHouseRequest) Validate() error
- func (m *GetHouseRequest) ValidateAll() error
- type GetHouseRequestMultiError
- type GetHouseRequestValidationError
- func (e GetHouseRequestValidationError) Cause() error
- func (e GetHouseRequestValidationError) Error() string
- func (e GetHouseRequestValidationError) ErrorName() string
- func (e GetHouseRequestValidationError) Field() string
- func (e GetHouseRequestValidationError) Key() bool
- func (e GetHouseRequestValidationError) Reason() string
- type HouseClient
- type HouseHTTPClient
- type HouseHTTPClientImpl
- func (c *HouseHTTPClientImpl) CreateHouse(ctx context.Context, in *CreateHouseRequest, opts ...http.CallOption) (*CreateHouseReply, error)
- func (c *HouseHTTPClientImpl) GetHouse(ctx context.Context, in *GetHouseRequest, opts ...http.CallOption) (*GetHouseReply, error)
- func (c *HouseHTTPClientImpl) ListHouse(ctx context.Context, in *ListHouseRequest, opts ...http.CallOption) (*ListHouseReply, error)
- type HouseHTTPServer
- type HouseServer
- type ListHouseReply
- func (*ListHouseReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListHouseReply) GetResults() []*ListHouseReply_House
- func (*ListHouseReply) ProtoMessage()
- func (x *ListHouseReply) ProtoReflect() protoreflect.Message
- func (x *ListHouseReply) Reset()
- func (x *ListHouseReply) String() string
- func (m *ListHouseReply) Validate() error
- func (m *ListHouseReply) ValidateAll() error
- type ListHouseReplyMultiError
- type ListHouseReplyValidationError
- func (e ListHouseReplyValidationError) Cause() error
- func (e ListHouseReplyValidationError) Error() string
- func (e ListHouseReplyValidationError) ErrorName() string
- func (e ListHouseReplyValidationError) Field() string
- func (e ListHouseReplyValidationError) Key() bool
- func (e ListHouseReplyValidationError) Reason() string
- type ListHouseReply_House
- func (*ListHouseReply_House) Descriptor() ([]byte, []int)deprecated
- func (x *ListHouseReply_House) GetCommunity() string
- func (x *ListHouseReply_House) GetDescription() string
- func (x *ListHouseReply_House) GetId() int64
- func (x *ListHouseReply_House) GetImage() string
- func (x *ListHouseReply_House) GetTitle() string
- func (*ListHouseReply_House) ProtoMessage()
- func (x *ListHouseReply_House) ProtoReflect() protoreflect.Message
- func (x *ListHouseReply_House) Reset()
- func (x *ListHouseReply_House) String() string
- func (m *ListHouseReply_House) Validate() error
- func (m *ListHouseReply_House) ValidateAll() error
- type ListHouseReply_HouseMultiError
- type ListHouseReply_HouseValidationError
- func (e ListHouseReply_HouseValidationError) Cause() error
- func (e ListHouseReply_HouseValidationError) Error() string
- func (e ListHouseReply_HouseValidationError) ErrorName() string
- func (e ListHouseReply_HouseValidationError) Field() string
- func (e ListHouseReply_HouseValidationError) Key() bool
- func (e ListHouseReply_HouseValidationError) Reason() string
- type ListHouseRequest
- func (*ListHouseRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListHouseRequest) ProtoMessage()
- func (x *ListHouseRequest) ProtoReflect() protoreflect.Message
- func (x *ListHouseRequest) Reset()
- func (x *ListHouseRequest) String() string
- func (m *ListHouseRequest) Validate() error
- func (m *ListHouseRequest) ValidateAll() error
- type ListHouseRequestMultiError
- type ListHouseRequestValidationError
- func (e ListHouseRequestValidationError) Cause() error
- func (e ListHouseRequestValidationError) Error() string
- func (e ListHouseRequestValidationError) ErrorName() string
- func (e ListHouseRequestValidationError) Field() string
- func (e ListHouseRequestValidationError) Key() bool
- func (e ListHouseRequestValidationError) Reason() string
- type UnimplementedHouseServer
- func (UnimplementedHouseServer) CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error)
- func (UnimplementedHouseServer) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error)
- func (UnimplementedHouseServer) ListHouse(context.Context, *ListHouseRequest) (*ListHouseReply, error)
- type UnsafeHouseServer
Constants ¶
This section is empty.
Variables ¶
var File_api_house_service_v1_house_proto protoreflect.FileDescriptor
var House_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.house.service.v1.House", HandlerType: (*HouseServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateHouse", Handler: _House_CreateHouse_Handler, }, { MethodName: "GetHouse", Handler: _House_GetHouse_Handler, }, { MethodName: "ListHouse", Handler: _House_ListHouse_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/house/service/v1/house.proto", }
House_ServiceDesc is the grpc.ServiceDesc for House service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHouseHTTPServer ¶
func RegisterHouseHTTPServer(s *http.Server, srv HouseHTTPServer)
func RegisterHouseServer ¶
func RegisterHouseServer(s grpc.ServiceRegistrar, srv HouseServer)
Types ¶
type CreateHouseReply ¶
type CreateHouseReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateHouseReply) Descriptor
deprecated
func (*CreateHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseReply.ProtoReflect.Descriptor instead.
func (*CreateHouseReply) GetId ¶
func (x *CreateHouseReply) GetId() int64
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
func (*CreateHouseReply) Validate ¶
func (m *CreateHouseReply) Validate() error
Validate checks the field values on CreateHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateHouseReply) ValidateAll ¶
func (m *CreateHouseReply) ValidateAll() error
ValidateAll checks the field values on CreateHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateHouseReplyMultiError, or nil if none found.
type CreateHouseReplyMultiError ¶
type CreateHouseReplyMultiError []error
CreateHouseReplyMultiError is an error wrapping multiple validation errors returned by CreateHouseReply.ValidateAll() if the designated constraints aren't met.
func (CreateHouseReplyMultiError) AllErrors ¶
func (m CreateHouseReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateHouseReplyMultiError) Error ¶
func (m CreateHouseReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateHouseReplyValidationError ¶
type CreateHouseReplyValidationError struct {
// contains filtered or unexported fields
}
CreateHouseReplyValidationError is the validation error returned by CreateHouseReply.Validate if the designated constraints aren't met.
func (CreateHouseReplyValidationError) Cause ¶
func (e CreateHouseReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateHouseReplyValidationError) Error ¶
func (e CreateHouseReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateHouseReplyValidationError) ErrorName ¶
func (e CreateHouseReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateHouseReplyValidationError) Field ¶
func (e CreateHouseReplyValidationError) Field() string
Field function returns field value.
func (CreateHouseReplyValidationError) Key ¶
func (e CreateHouseReplyValidationError) Key() bool
Key function returns key value.
func (CreateHouseReplyValidationError) Reason ¶
func (e CreateHouseReplyValidationError) Reason() string
Reason function returns reason value.
type CreateHouseRequest ¶
type CreateHouseRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Community string `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"` FloorCount int32 `protobuf:"varint,3,opt,name=floor_count,json=floorCount,proto3" json:"floor_count,omitempty"` KitchenCount int32 `protobuf:"varint,4,opt,name=kitchen_count,json=kitchenCount,proto3" json:"kitchen_count,omitempty"` ToiletCount int32 `protobuf:"varint,5,opt,name=toilet_count,json=toiletCount,proto3" json:"toilet_count,omitempty"` HallCount int32 `protobuf:"varint,6,opt,name=hall_count,json=hallCount,proto3" json:"hall_count,omitempty"` RoomCount int32 `protobuf:"varint,7,opt,name=room_count,json=roomCount,proto3" json:"room_count,omitempty"` Image string `protobuf:"bytes,8,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateHouseRequest) Descriptor
deprecated
func (*CreateHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseRequest.ProtoReflect.Descriptor instead.
func (*CreateHouseRequest) GetCommunity ¶
func (x *CreateHouseRequest) GetCommunity() string
func (*CreateHouseRequest) GetFloorCount ¶
func (x *CreateHouseRequest) GetFloorCount() int32
func (*CreateHouseRequest) GetHallCount ¶
func (x *CreateHouseRequest) GetHallCount() int32
func (*CreateHouseRequest) GetImage ¶
func (x *CreateHouseRequest) GetImage() string
func (*CreateHouseRequest) GetKitchenCount ¶
func (x *CreateHouseRequest) GetKitchenCount() int32
func (*CreateHouseRequest) GetRoomCount ¶
func (x *CreateHouseRequest) GetRoomCount() int32
func (*CreateHouseRequest) GetTitle ¶
func (x *CreateHouseRequest) GetTitle() string
func (*CreateHouseRequest) GetToiletCount ¶
func (x *CreateHouseRequest) GetToiletCount() int32
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
func (*CreateHouseRequest) Validate ¶
func (m *CreateHouseRequest) Validate() error
Validate checks the field values on CreateHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateHouseRequest) ValidateAll ¶
func (m *CreateHouseRequest) ValidateAll() error
ValidateAll checks the field values on CreateHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateHouseRequestMultiError, or nil if none found.
type CreateHouseRequestMultiError ¶
type CreateHouseRequestMultiError []error
CreateHouseRequestMultiError is an error wrapping multiple validation errors returned by CreateHouseRequest.ValidateAll() if the designated constraints aren't met.
func (CreateHouseRequestMultiError) AllErrors ¶
func (m CreateHouseRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateHouseRequestMultiError) Error ¶
func (m CreateHouseRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateHouseRequestValidationError ¶
type CreateHouseRequestValidationError struct {
// contains filtered or unexported fields
}
CreateHouseRequestValidationError is the validation error returned by CreateHouseRequest.Validate if the designated constraints aren't met.
func (CreateHouseRequestValidationError) Cause ¶
func (e CreateHouseRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateHouseRequestValidationError) Error ¶
func (e CreateHouseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateHouseRequestValidationError) ErrorName ¶
func (e CreateHouseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateHouseRequestValidationError) Field ¶
func (e CreateHouseRequestValidationError) Field() string
Field function returns field value.
func (CreateHouseRequestValidationError) Key ¶
func (e CreateHouseRequestValidationError) Key() bool
Key function returns key value.
func (CreateHouseRequestValidationError) Reason ¶
func (e CreateHouseRequestValidationError) Reason() string
Reason function returns reason value.
type GetHouseReply ¶
type GetHouseReply struct { Id int64 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Community string `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"` FloorCount int32 `protobuf:"varint,3,opt,name=floor_count,json=floorCount,proto3" json:"floor_count,omitempty"` KitchenCount int32 `protobuf:"varint,4,opt,name=kitchen_count,json=kitchenCount,proto3" json:"kitchen_count,omitempty"` ToiletCount int32 `protobuf:"varint,5,opt,name=toilet_count,json=toiletCount,proto3" json:"toilet_count,omitempty"` HallCount int32 `protobuf:"varint,6,opt,name=hall_count,json=hallCount,proto3" json:"hall_count,omitempty"` RoomCount int32 `protobuf:"varint,7,opt,name=room_count,json=roomCount,proto3" json:"room_count,omitempty"` // contains filtered or unexported fields }
func (*GetHouseReply) Descriptor
deprecated
func (*GetHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseReply.ProtoReflect.Descriptor instead.
func (*GetHouseReply) GetCommunity ¶
func (x *GetHouseReply) GetCommunity() string
func (*GetHouseReply) GetFloorCount ¶
func (x *GetHouseReply) GetFloorCount() int32
func (*GetHouseReply) GetHallCount ¶
func (x *GetHouseReply) GetHallCount() int32
func (*GetHouseReply) GetId ¶
func (x *GetHouseReply) GetId() int64
func (*GetHouseReply) GetKitchenCount ¶
func (x *GetHouseReply) GetKitchenCount() int32
func (*GetHouseReply) GetRoomCount ¶
func (x *GetHouseReply) GetRoomCount() int32
func (*GetHouseReply) GetTitle ¶
func (x *GetHouseReply) GetTitle() string
func (*GetHouseReply) GetToiletCount ¶
func (x *GetHouseReply) GetToiletCount() int32
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
func (*GetHouseReply) Validate ¶
func (m *GetHouseReply) Validate() error
Validate checks the field values on GetHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetHouseReply) ValidateAll ¶
func (m *GetHouseReply) ValidateAll() error
ValidateAll checks the field values on GetHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetHouseReplyMultiError, or nil if none found.
type GetHouseReplyMultiError ¶
type GetHouseReplyMultiError []error
GetHouseReplyMultiError is an error wrapping multiple validation errors returned by GetHouseReply.ValidateAll() if the designated constraints aren't met.
func (GetHouseReplyMultiError) AllErrors ¶
func (m GetHouseReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetHouseReplyMultiError) Error ¶
func (m GetHouseReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetHouseReplyValidationError ¶
type GetHouseReplyValidationError struct {
// contains filtered or unexported fields
}
GetHouseReplyValidationError is the validation error returned by GetHouseReply.Validate if the designated constraints aren't met.
func (GetHouseReplyValidationError) Cause ¶
func (e GetHouseReplyValidationError) Cause() error
Cause function returns cause value.
func (GetHouseReplyValidationError) Error ¶
func (e GetHouseReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetHouseReplyValidationError) ErrorName ¶
func (e GetHouseReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetHouseReplyValidationError) Field ¶
func (e GetHouseReplyValidationError) Field() string
Field function returns field value.
func (GetHouseReplyValidationError) Key ¶
func (e GetHouseReplyValidationError) Key() bool
Key function returns key value.
func (GetHouseReplyValidationError) Reason ¶
func (e GetHouseReplyValidationError) Reason() string
Reason function returns reason value.
type GetHouseRequest ¶
type GetHouseRequest struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetHouseRequest) Descriptor
deprecated
func (*GetHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseRequest.ProtoReflect.Descriptor instead.
func (*GetHouseRequest) GetId ¶
func (x *GetHouseRequest) GetId() int64
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
func (*GetHouseRequest) Validate ¶
func (m *GetHouseRequest) Validate() error
Validate checks the field values on GetHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetHouseRequest) ValidateAll ¶
func (m *GetHouseRequest) ValidateAll() error
ValidateAll checks the field values on GetHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetHouseRequestMultiError, or nil if none found.
type GetHouseRequestMultiError ¶
type GetHouseRequestMultiError []error
GetHouseRequestMultiError is an error wrapping multiple validation errors returned by GetHouseRequest.ValidateAll() if the designated constraints aren't met.
func (GetHouseRequestMultiError) AllErrors ¶
func (m GetHouseRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetHouseRequestMultiError) Error ¶
func (m GetHouseRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetHouseRequestValidationError ¶
type GetHouseRequestValidationError struct {
// contains filtered or unexported fields
}
GetHouseRequestValidationError is the validation error returned by GetHouseRequest.Validate if the designated constraints aren't met.
func (GetHouseRequestValidationError) Cause ¶
func (e GetHouseRequestValidationError) Cause() error
Cause function returns cause value.
func (GetHouseRequestValidationError) Error ¶
func (e GetHouseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetHouseRequestValidationError) ErrorName ¶
func (e GetHouseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetHouseRequestValidationError) Field ¶
func (e GetHouseRequestValidationError) Field() string
Field function returns field value.
func (GetHouseRequestValidationError) Key ¶
func (e GetHouseRequestValidationError) Key() bool
Key function returns key value.
func (GetHouseRequestValidationError) Reason ¶
func (e GetHouseRequestValidationError) Reason() string
Reason function returns reason value.
type HouseClient ¶
type HouseClient interface { CreateHouse(ctx context.Context, in *CreateHouseRequest, opts ...grpc.CallOption) (*CreateHouseReply, error) GetHouse(ctx context.Context, in *GetHouseRequest, opts ...grpc.CallOption) (*GetHouseReply, error) ListHouse(ctx context.Context, in *ListHouseRequest, opts ...grpc.CallOption) (*ListHouseReply, error) }
HouseClient is the client API for House 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 NewHouseClient ¶
func NewHouseClient(cc grpc.ClientConnInterface) HouseClient
type HouseHTTPClient ¶
type HouseHTTPClient interface { CreateHouse(ctx context.Context, req *CreateHouseRequest, opts ...http.CallOption) (rsp *CreateHouseReply, err error) GetHouse(ctx context.Context, req *GetHouseRequest, opts ...http.CallOption) (rsp *GetHouseReply, err error) ListHouse(ctx context.Context, req *ListHouseRequest, opts ...http.CallOption) (rsp *ListHouseReply, err error) }
func NewHouseHTTPClient ¶
func NewHouseHTTPClient(client *http.Client) HouseHTTPClient
type HouseHTTPClientImpl ¶
type HouseHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*HouseHTTPClientImpl) CreateHouse ¶
func (c *HouseHTTPClientImpl) CreateHouse(ctx context.Context, in *CreateHouseRequest, opts ...http.CallOption) (*CreateHouseReply, error)
func (*HouseHTTPClientImpl) GetHouse ¶
func (c *HouseHTTPClientImpl) GetHouse(ctx context.Context, in *GetHouseRequest, opts ...http.CallOption) (*GetHouseReply, error)
func (*HouseHTTPClientImpl) ListHouse ¶
func (c *HouseHTTPClientImpl) ListHouse(ctx context.Context, in *ListHouseRequest, opts ...http.CallOption) (*ListHouseReply, error)
type HouseHTTPServer ¶
type HouseHTTPServer interface { CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error) ListHouse(context.Context, *ListHouseRequest) (*ListHouseReply, error) }
type HouseServer ¶
type HouseServer interface { CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error) ListHouse(context.Context, *ListHouseRequest) (*ListHouseReply, error) // contains filtered or unexported methods }
HouseServer is the server API for House service. All implementations must embed UnimplementedHouseServer for forward compatibility
type ListHouseReply ¶
type ListHouseReply struct { Results []*ListHouseReply_House `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListHouseReply) Descriptor
deprecated
func (*ListHouseReply) Descriptor() ([]byte, []int)
Deprecated: Use ListHouseReply.ProtoReflect.Descriptor instead.
func (*ListHouseReply) GetResults ¶
func (x *ListHouseReply) GetResults() []*ListHouseReply_House
func (*ListHouseReply) ProtoMessage ¶
func (*ListHouseReply) ProtoMessage()
func (*ListHouseReply) ProtoReflect ¶
func (x *ListHouseReply) ProtoReflect() protoreflect.Message
func (*ListHouseReply) Reset ¶
func (x *ListHouseReply) Reset()
func (*ListHouseReply) String ¶
func (x *ListHouseReply) String() string
func (*ListHouseReply) Validate ¶
func (m *ListHouseReply) Validate() error
Validate checks the field values on ListHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListHouseReply) ValidateAll ¶
func (m *ListHouseReply) ValidateAll() error
ValidateAll checks the field values on ListHouseReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListHouseReplyMultiError, or nil if none found.
type ListHouseReplyMultiError ¶
type ListHouseReplyMultiError []error
ListHouseReplyMultiError is an error wrapping multiple validation errors returned by ListHouseReply.ValidateAll() if the designated constraints aren't met.
func (ListHouseReplyMultiError) AllErrors ¶
func (m ListHouseReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListHouseReplyMultiError) Error ¶
func (m ListHouseReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListHouseReplyValidationError ¶
type ListHouseReplyValidationError struct {
// contains filtered or unexported fields
}
ListHouseReplyValidationError is the validation error returned by ListHouseReply.Validate if the designated constraints aren't met.
func (ListHouseReplyValidationError) Cause ¶
func (e ListHouseReplyValidationError) Cause() error
Cause function returns cause value.
func (ListHouseReplyValidationError) Error ¶
func (e ListHouseReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListHouseReplyValidationError) ErrorName ¶
func (e ListHouseReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListHouseReplyValidationError) Field ¶
func (e ListHouseReplyValidationError) Field() string
Field function returns field value.
func (ListHouseReplyValidationError) Key ¶
func (e ListHouseReplyValidationError) Key() bool
Key function returns key value.
func (ListHouseReplyValidationError) Reason ¶
func (e ListHouseReplyValidationError) Reason() string
Reason function returns reason value.
type ListHouseReply_House ¶
type ListHouseReply_House struct { Id int64 `protobuf:"varint,11,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Community string `protobuf:"bytes,2,opt,name=community,proto3" json:"community,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ListHouseReply_House) Descriptor
deprecated
func (*ListHouseReply_House) Descriptor() ([]byte, []int)
Deprecated: Use ListHouseReply_House.ProtoReflect.Descriptor instead.
func (*ListHouseReply_House) GetCommunity ¶
func (x *ListHouseReply_House) GetCommunity() string
func (*ListHouseReply_House) GetDescription ¶
func (x *ListHouseReply_House) GetDescription() string
func (*ListHouseReply_House) GetId ¶
func (x *ListHouseReply_House) GetId() int64
func (*ListHouseReply_House) GetImage ¶
func (x *ListHouseReply_House) GetImage() string
func (*ListHouseReply_House) GetTitle ¶
func (x *ListHouseReply_House) GetTitle() string
func (*ListHouseReply_House) ProtoMessage ¶
func (*ListHouseReply_House) ProtoMessage()
func (*ListHouseReply_House) ProtoReflect ¶
func (x *ListHouseReply_House) ProtoReflect() protoreflect.Message
func (*ListHouseReply_House) Reset ¶
func (x *ListHouseReply_House) Reset()
func (*ListHouseReply_House) String ¶
func (x *ListHouseReply_House) String() string
func (*ListHouseReply_House) Validate ¶
func (m *ListHouseReply_House) Validate() error
Validate checks the field values on ListHouseReply_House with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListHouseReply_House) ValidateAll ¶
func (m *ListHouseReply_House) ValidateAll() error
ValidateAll checks the field values on ListHouseReply_House with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListHouseReply_HouseMultiError, or nil if none found.
type ListHouseReply_HouseMultiError ¶
type ListHouseReply_HouseMultiError []error
ListHouseReply_HouseMultiError is an error wrapping multiple validation errors returned by ListHouseReply_House.ValidateAll() if the designated constraints aren't met.
func (ListHouseReply_HouseMultiError) AllErrors ¶
func (m ListHouseReply_HouseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListHouseReply_HouseMultiError) Error ¶
func (m ListHouseReply_HouseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListHouseReply_HouseValidationError ¶
type ListHouseReply_HouseValidationError struct {
// contains filtered or unexported fields
}
ListHouseReply_HouseValidationError is the validation error returned by ListHouseReply_House.Validate if the designated constraints aren't met.
func (ListHouseReply_HouseValidationError) Cause ¶
func (e ListHouseReply_HouseValidationError) Cause() error
Cause function returns cause value.
func (ListHouseReply_HouseValidationError) Error ¶
func (e ListHouseReply_HouseValidationError) Error() string
Error satisfies the builtin error interface
func (ListHouseReply_HouseValidationError) ErrorName ¶
func (e ListHouseReply_HouseValidationError) ErrorName() string
ErrorName returns error name.
func (ListHouseReply_HouseValidationError) Field ¶
func (e ListHouseReply_HouseValidationError) Field() string
Field function returns field value.
func (ListHouseReply_HouseValidationError) Key ¶
func (e ListHouseReply_HouseValidationError) Key() bool
Key function returns key value.
func (ListHouseReply_HouseValidationError) Reason ¶
func (e ListHouseReply_HouseValidationError) Reason() string
Reason function returns reason value.
type ListHouseRequest ¶
type ListHouseRequest struct {
// contains filtered or unexported fields
}
func (*ListHouseRequest) Descriptor
deprecated
func (*ListHouseRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListHouseRequest.ProtoReflect.Descriptor instead.
func (*ListHouseRequest) ProtoMessage ¶
func (*ListHouseRequest) ProtoMessage()
func (*ListHouseRequest) ProtoReflect ¶
func (x *ListHouseRequest) ProtoReflect() protoreflect.Message
func (*ListHouseRequest) Reset ¶
func (x *ListHouseRequest) Reset()
func (*ListHouseRequest) String ¶
func (x *ListHouseRequest) String() string
func (*ListHouseRequest) Validate ¶
func (m *ListHouseRequest) Validate() error
Validate checks the field values on ListHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListHouseRequest) ValidateAll ¶
func (m *ListHouseRequest) ValidateAll() error
ValidateAll checks the field values on ListHouseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListHouseRequestMultiError, or nil if none found.
type ListHouseRequestMultiError ¶
type ListHouseRequestMultiError []error
ListHouseRequestMultiError is an error wrapping multiple validation errors returned by ListHouseRequest.ValidateAll() if the designated constraints aren't met.
func (ListHouseRequestMultiError) AllErrors ¶
func (m ListHouseRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListHouseRequestMultiError) Error ¶
func (m ListHouseRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListHouseRequestValidationError ¶
type ListHouseRequestValidationError struct {
// contains filtered or unexported fields
}
ListHouseRequestValidationError is the validation error returned by ListHouseRequest.Validate if the designated constraints aren't met.
func (ListHouseRequestValidationError) Cause ¶
func (e ListHouseRequestValidationError) Cause() error
Cause function returns cause value.
func (ListHouseRequestValidationError) Error ¶
func (e ListHouseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListHouseRequestValidationError) ErrorName ¶
func (e ListHouseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListHouseRequestValidationError) Field ¶
func (e ListHouseRequestValidationError) Field() string
Field function returns field value.
func (ListHouseRequestValidationError) Key ¶
func (e ListHouseRequestValidationError) Key() bool
Key function returns key value.
func (ListHouseRequestValidationError) Reason ¶
func (e ListHouseRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedHouseServer ¶
type UnimplementedHouseServer struct { }
UnimplementedHouseServer must be embedded to have forward compatible implementations.
func (UnimplementedHouseServer) CreateHouse ¶
func (UnimplementedHouseServer) CreateHouse(context.Context, *CreateHouseRequest) (*CreateHouseReply, error)
func (UnimplementedHouseServer) GetHouse ¶
func (UnimplementedHouseServer) GetHouse(context.Context, *GetHouseRequest) (*GetHouseReply, error)
func (UnimplementedHouseServer) ListHouse ¶
func (UnimplementedHouseServer) ListHouse(context.Context, *ListHouseRequest) (*ListHouseReply, error)
type UnsafeHouseServer ¶
type UnsafeHouseServer interface {
// contains filtered or unexported methods
}
UnsafeHouseServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HouseServer will result in compilation errors.