Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterHouseholdServiceServer(s grpc.ServiceRegistrar, srv HouseholdServiceServer)
- type CreateHouseholdRequest
- func (*CreateHouseholdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateHouseholdRequest) GetName() string
- func (*CreateHouseholdRequest) ProtoMessage()
- func (x *CreateHouseholdRequest) ProtoReflect() protoreflect.Message
- func (x *CreateHouseholdRequest) Reset()
- func (x *CreateHouseholdRequest) String() string
- type CreateHouseholdResponse
- func (*CreateHouseholdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateHouseholdResponse) GetErrorMessage() *Error
- func (x *CreateHouseholdResponse) GetHouseholdId() string
- func (x *CreateHouseholdResponse) GetName() string
- func (*CreateHouseholdResponse) ProtoMessage()
- func (x *CreateHouseholdResponse) ProtoReflect() protoreflect.Message
- func (x *CreateHouseholdResponse) Reset()
- func (x *CreateHouseholdResponse) String() string
- type Error
- type GetHouseHoldsRequest
- func (*GetHouseHoldsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHouseHoldsRequest) GetLimit() int32
- func (x *GetHouseHoldsRequest) GetOffset() int32
- func (*GetHouseHoldsRequest) ProtoMessage()
- func (x *GetHouseHoldsRequest) ProtoReflect() protoreflect.Message
- func (x *GetHouseHoldsRequest) Reset()
- func (x *GetHouseHoldsRequest) String() string
- type GetHouseholdRequest
- func (*GetHouseholdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetHouseholdRequest) GetHouseholdId() string
- func (*GetHouseholdRequest) ProtoMessage()
- func (x *GetHouseholdRequest) ProtoReflect() protoreflect.Message
- func (x *GetHouseholdRequest) Reset()
- func (x *GetHouseholdRequest) String() string
- type HouseholdResponse
- func (*HouseholdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HouseholdResponse) GetErrorMessage() *Error
- func (x *HouseholdResponse) GetId() string
- func (x *HouseholdResponse) GetName() string
- func (*HouseholdResponse) ProtoMessage()
- func (x *HouseholdResponse) ProtoReflect() protoreflect.Message
- func (x *HouseholdResponse) Reset()
- func (x *HouseholdResponse) String() string
- type HouseholdServiceClient
- type HouseholdServiceServer
- type HouseholdsResponse
- func (*HouseholdsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HouseholdsResponse) GetErrorMessage() *Error
- func (x *HouseholdsResponse) GetHouseholds() []*HouseholdResponse
- func (*HouseholdsResponse) ProtoMessage()
- func (x *HouseholdsResponse) ProtoReflect() protoreflect.Message
- func (x *HouseholdsResponse) Reset()
- func (x *HouseholdsResponse) String() string
- type UnimplementedHouseholdServiceServer
- func (UnimplementedHouseholdServiceServer) CreateHousehold(context.Context, *CreateHouseholdRequest) (*HouseholdResponse, error)
- func (UnimplementedHouseholdServiceServer) DeleteHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
- func (UnimplementedHouseholdServiceServer) GetHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
- func (UnimplementedHouseholdServiceServer) GetHouseholds(context.Context, *GetHouseHoldsRequest) (*HouseholdsResponse, error)
- func (UnimplementedHouseholdServiceServer) UpdateHousehold(context.Context, *UpdateHouseholdRequest) (*HouseholdResponse, error)
- type UnsafeHouseholdServiceServer
- type UpdateHouseholdRequest
- func (*UpdateHouseholdRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateHouseholdRequest) GetHouseholdId() string
- func (x *UpdateHouseholdRequest) GetName() string
- func (*UpdateHouseholdRequest) ProtoMessage()
- func (x *UpdateHouseholdRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateHouseholdRequest) Reset()
- func (x *UpdateHouseholdRequest) String() string
Constants ¶
const ( HouseholdService_CreateHousehold_FullMethodName = "/api.HouseholdService/CreateHousehold" HouseholdService_GetHousehold_FullMethodName = "/api.HouseholdService/GetHousehold" HouseholdService_GetHouseholds_FullMethodName = "/api.HouseholdService/GetHouseholds" HouseholdService_UpdateHousehold_FullMethodName = "/api.HouseholdService/UpdateHousehold" HouseholdService_DeleteHousehold_FullMethodName = "/api.HouseholdService/DeleteHousehold" )
Variables ¶
var File_proto_hmly_proto protoreflect.FileDescriptor
var HouseholdService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.HouseholdService", HandlerType: (*HouseholdServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateHousehold", Handler: _HouseholdService_CreateHousehold_Handler, }, { MethodName: "GetHousehold", Handler: _HouseholdService_GetHousehold_Handler, }, { MethodName: "GetHouseholds", Handler: _HouseholdService_GetHouseholds_Handler, }, { MethodName: "UpdateHousehold", Handler: _HouseholdService_UpdateHousehold_Handler, }, { MethodName: "DeleteHousehold", Handler: _HouseholdService_DeleteHousehold_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/hmly.proto", }
HouseholdService_ServiceDesc is the grpc.ServiceDesc for HouseholdService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHouseholdServiceServer ¶
func RegisterHouseholdServiceServer(s grpc.ServiceRegistrar, srv HouseholdServiceServer)
Types ¶
type CreateHouseholdRequest ¶
type CreateHouseholdRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*CreateHouseholdRequest) Descriptor
deprecated
func (*CreateHouseholdRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseholdRequest.ProtoReflect.Descriptor instead.
func (*CreateHouseholdRequest) GetName ¶
func (x *CreateHouseholdRequest) GetName() string
func (*CreateHouseholdRequest) ProtoMessage ¶
func (*CreateHouseholdRequest) ProtoMessage()
func (*CreateHouseholdRequest) ProtoReflect ¶
func (x *CreateHouseholdRequest) ProtoReflect() protoreflect.Message
func (*CreateHouseholdRequest) Reset ¶
func (x *CreateHouseholdRequest) Reset()
func (*CreateHouseholdRequest) String ¶
func (x *CreateHouseholdRequest) String() string
type CreateHouseholdResponse ¶
type CreateHouseholdResponse struct {
HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ErrorMessage *Error `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*CreateHouseholdResponse) Descriptor
deprecated
func (*CreateHouseholdResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateHouseholdResponse.ProtoReflect.Descriptor instead.
func (*CreateHouseholdResponse) GetErrorMessage ¶
func (x *CreateHouseholdResponse) GetErrorMessage() *Error
func (*CreateHouseholdResponse) GetHouseholdId ¶
func (x *CreateHouseholdResponse) GetHouseholdId() string
func (*CreateHouseholdResponse) GetName ¶
func (x *CreateHouseholdResponse) GetName() string
func (*CreateHouseholdResponse) ProtoMessage ¶
func (*CreateHouseholdResponse) ProtoMessage()
func (*CreateHouseholdResponse) ProtoReflect ¶
func (x *CreateHouseholdResponse) ProtoReflect() protoreflect.Message
func (*CreateHouseholdResponse) Reset ¶
func (x *CreateHouseholdResponse) Reset()
func (*CreateHouseholdResponse) String ¶
func (x *CreateHouseholdResponse) String() string
type Error ¶
type Error struct {
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
func (*Error) Descriptor
deprecated
func (*Error) GetMessage ¶
func (*Error) ProtoMessage ¶
func (*Error) ProtoMessage()
func (*Error) ProtoReflect ¶
func (x *Error) ProtoReflect() protoreflect.Message
type GetHouseHoldsRequest ¶
type GetHouseHoldsRequest struct {
Offset int32 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// contains filtered or unexported fields
}
func (*GetHouseHoldsRequest) Descriptor
deprecated
func (*GetHouseHoldsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseHoldsRequest.ProtoReflect.Descriptor instead.
func (*GetHouseHoldsRequest) GetLimit ¶
func (x *GetHouseHoldsRequest) GetLimit() int32
func (*GetHouseHoldsRequest) GetOffset ¶
func (x *GetHouseHoldsRequest) GetOffset() int32
func (*GetHouseHoldsRequest) ProtoMessage ¶
func (*GetHouseHoldsRequest) ProtoMessage()
func (*GetHouseHoldsRequest) ProtoReflect ¶
func (x *GetHouseHoldsRequest) ProtoReflect() protoreflect.Message
func (*GetHouseHoldsRequest) Reset ¶
func (x *GetHouseHoldsRequest) Reset()
func (*GetHouseHoldsRequest) String ¶
func (x *GetHouseHoldsRequest) String() string
type GetHouseholdRequest ¶
type GetHouseholdRequest struct {
HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"`
// contains filtered or unexported fields
}
func (*GetHouseholdRequest) Descriptor
deprecated
func (*GetHouseholdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetHouseholdRequest.ProtoReflect.Descriptor instead.
func (*GetHouseholdRequest) GetHouseholdId ¶
func (x *GetHouseholdRequest) GetHouseholdId() string
func (*GetHouseholdRequest) ProtoMessage ¶
func (*GetHouseholdRequest) ProtoMessage()
func (*GetHouseholdRequest) ProtoReflect ¶
func (x *GetHouseholdRequest) ProtoReflect() protoreflect.Message
func (*GetHouseholdRequest) Reset ¶
func (x *GetHouseholdRequest) Reset()
func (*GetHouseholdRequest) String ¶
func (x *GetHouseholdRequest) String() string
type HouseholdResponse ¶
type HouseholdResponse struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
ErrorMessage *Error `protobuf:"bytes,3,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*HouseholdResponse) Descriptor
deprecated
func (*HouseholdResponse) Descriptor() ([]byte, []int)
Deprecated: Use HouseholdResponse.ProtoReflect.Descriptor instead.
func (*HouseholdResponse) GetErrorMessage ¶
func (x *HouseholdResponse) GetErrorMessage() *Error
func (*HouseholdResponse) GetId ¶
func (x *HouseholdResponse) GetId() string
func (*HouseholdResponse) GetName ¶
func (x *HouseholdResponse) GetName() string
func (*HouseholdResponse) ProtoMessage ¶
func (*HouseholdResponse) ProtoMessage()
func (*HouseholdResponse) ProtoReflect ¶
func (x *HouseholdResponse) ProtoReflect() protoreflect.Message
func (*HouseholdResponse) Reset ¶
func (x *HouseholdResponse) Reset()
func (*HouseholdResponse) String ¶
func (x *HouseholdResponse) String() string
type HouseholdServiceClient ¶
type HouseholdServiceClient interface {
CreateHousehold(ctx context.Context, in *CreateHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
GetHousehold(ctx context.Context, in *GetHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
GetHouseholds(ctx context.Context, in *GetHouseHoldsRequest, opts ...grpc.CallOption) (*HouseholdsResponse, error)
UpdateHousehold(ctx context.Context, in *UpdateHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
DeleteHousehold(ctx context.Context, in *GetHouseholdRequest, opts ...grpc.CallOption) (*HouseholdResponse, error)
}
HouseholdServiceClient is the client API for HouseholdService 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 NewHouseholdServiceClient ¶
func NewHouseholdServiceClient(cc grpc.ClientConnInterface) HouseholdServiceClient
type HouseholdServiceServer ¶
type HouseholdServiceServer interface {
CreateHousehold(context.Context, *CreateHouseholdRequest) (*HouseholdResponse, error)
GetHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
GetHouseholds(context.Context, *GetHouseHoldsRequest) (*HouseholdsResponse, error)
UpdateHousehold(context.Context, *UpdateHouseholdRequest) (*HouseholdResponse, error)
DeleteHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
// contains filtered or unexported methods
}
HouseholdServiceServer is the server API for HouseholdService service. All implementations must embed UnimplementedHouseholdServiceServer for forward compatibility.
type HouseholdsResponse ¶
type HouseholdsResponse struct {
Households []*HouseholdResponse `protobuf:"bytes,1,rep,name=households,proto3" json:"households,omitempty"`
ErrorMessage *Error `protobuf:"bytes,2,opt,name=error_message,json=errorMessage,proto3,oneof" json:"error_message,omitempty"`
// contains filtered or unexported fields
}
func (*HouseholdsResponse) Descriptor
deprecated
func (*HouseholdsResponse) Descriptor() ([]byte, []int)
Deprecated: Use HouseholdsResponse.ProtoReflect.Descriptor instead.
func (*HouseholdsResponse) GetErrorMessage ¶
func (x *HouseholdsResponse) GetErrorMessage() *Error
func (*HouseholdsResponse) GetHouseholds ¶
func (x *HouseholdsResponse) GetHouseholds() []*HouseholdResponse
func (*HouseholdsResponse) ProtoMessage ¶
func (*HouseholdsResponse) ProtoMessage()
func (*HouseholdsResponse) ProtoReflect ¶
func (x *HouseholdsResponse) ProtoReflect() protoreflect.Message
func (*HouseholdsResponse) Reset ¶
func (x *HouseholdsResponse) Reset()
func (*HouseholdsResponse) String ¶
func (x *HouseholdsResponse) String() string
type UnimplementedHouseholdServiceServer ¶
type UnimplementedHouseholdServiceServer struct{}
UnimplementedHouseholdServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedHouseholdServiceServer) CreateHousehold ¶
func (UnimplementedHouseholdServiceServer) CreateHousehold(context.Context, *CreateHouseholdRequest) (*HouseholdResponse, error)
func (UnimplementedHouseholdServiceServer) DeleteHousehold ¶
func (UnimplementedHouseholdServiceServer) DeleteHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
func (UnimplementedHouseholdServiceServer) GetHousehold ¶
func (UnimplementedHouseholdServiceServer) GetHousehold(context.Context, *GetHouseholdRequest) (*HouseholdResponse, error)
func (UnimplementedHouseholdServiceServer) GetHouseholds ¶
func (UnimplementedHouseholdServiceServer) GetHouseholds(context.Context, *GetHouseHoldsRequest) (*HouseholdsResponse, error)
func (UnimplementedHouseholdServiceServer) UpdateHousehold ¶
func (UnimplementedHouseholdServiceServer) UpdateHousehold(context.Context, *UpdateHouseholdRequest) (*HouseholdResponse, error)
type UnsafeHouseholdServiceServer ¶
type UnsafeHouseholdServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHouseholdServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HouseholdServiceServer will result in compilation errors.
type UpdateHouseholdRequest ¶
type UpdateHouseholdRequest struct {
HouseholdId string `protobuf:"bytes,1,opt,name=household_id,json=householdId,proto3" json:"household_id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateHouseholdRequest) Descriptor
deprecated
func (*UpdateHouseholdRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateHouseholdRequest.ProtoReflect.Descriptor instead.
func (*UpdateHouseholdRequest) GetHouseholdId ¶
func (x *UpdateHouseholdRequest) GetHouseholdId() string
func (*UpdateHouseholdRequest) GetName ¶
func (x *UpdateHouseholdRequest) GetName() string
func (*UpdateHouseholdRequest) ProtoMessage ¶
func (*UpdateHouseholdRequest) ProtoMessage()
func (*UpdateHouseholdRequest) ProtoReflect ¶
func (x *UpdateHouseholdRequest) ProtoReflect() protoreflect.Message
func (*UpdateHouseholdRequest) Reset ¶
func (x *UpdateHouseholdRequest) Reset()
func (*UpdateHouseholdRequest) String ¶
func (x *UpdateHouseholdRequest) String() string