Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_housework_v1_housework_proto protoreflect.FileDescriptor
Functions ¶
func RegisterRobotMaidService ¶
func RegisterRobotMaidService(s grpc.ServiceRegistrar, srv *RobotMaidService)
RegisterRobotMaidService registers a service implementation with a gRPC server.
Types ¶
type Chore ¶
type Chore struct { Complete bool `protobuf:"varint,1,opt,name=complete,proto3" json:"complete,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*Chore) Descriptor
deprecated
func (*Chore) GetComplete ¶
func (*Chore) GetDescription ¶
func (*Chore) ProtoMessage ¶
func (*Chore) ProtoMessage()
func (*Chore) ProtoReflect ¶
func (x *Chore) ProtoReflect() protoreflect.Message
type Chores ¶
type Chores struct { Chores []*Chore `protobuf:"bytes,1,rep,name=chores,proto3" json:"chores,omitempty"` // contains filtered or unexported fields }
func (*Chores) Descriptor
deprecated
func (*Chores) ProtoMessage ¶
func (*Chores) ProtoMessage()
func (*Chores) ProtoReflect ¶
func (x *Chores) ProtoReflect() protoreflect.Message
type CompleteRequest ¶
type CompleteRequest struct { ChoreNumber int32 `protobuf:"varint,1,opt,name=chore_number,json=choreNumber,proto3" json:"chore_number,omitempty"` // contains filtered or unexported fields }
func (*CompleteRequest) Descriptor
deprecated
func (*CompleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompleteRequest.ProtoReflect.Descriptor instead.
func (*CompleteRequest) GetChoreNumber ¶
func (x *CompleteRequest) GetChoreNumber() int32
func (*CompleteRequest) ProtoMessage ¶
func (*CompleteRequest) ProtoMessage()
func (*CompleteRequest) ProtoReflect ¶
func (x *CompleteRequest) ProtoReflect() protoreflect.Message
func (*CompleteRequest) Reset ¶
func (x *CompleteRequest) Reset()
func (*CompleteRequest) String ¶
func (x *CompleteRequest) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetMessage ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type RobotMaidClient ¶
type RobotMaidClient interface { Add(ctx context.Context, in *Chores, opts ...grpc.CallOption) (*Response, error) Complete(ctx context.Context, in *CompleteRequest, opts ...grpc.CallOption) (*Response, error) List(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Chores, error) }
RobotMaidClient is the client API for RobotMaid 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 NewRobotMaidClient ¶
func NewRobotMaidClient(cc grpc.ClientConnInterface) RobotMaidClient
type RobotMaidService ¶
type RobotMaidService struct { Add func(context.Context, *Chores) (*Response, error) Complete func(context.Context, *CompleteRequest) (*Response, error) List func(context.Context, *Empty) (*Chores, error) }
RobotMaidService is the service API for RobotMaid service. Fields should be assigned to their respective handler implementations only before RegisterRobotMaidService is called. Any unassigned fields will result in the handler for that method returning an Unimplemented error.
Click to show internal directories.
Click to hide internal directories.