housework

package
v0.0.0-...-4cb1a1d Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 9 Imported by: 0

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

Deprecated: Use Chore.ProtoReflect.Descriptor instead.

func (*Chore) GetComplete

func (x *Chore) GetComplete() bool

func (*Chore) GetDescription

func (x *Chore) GetDescription() string

func (*Chore) ProtoMessage

func (*Chore) ProtoMessage()

func (*Chore) ProtoReflect

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

func (*Chore) Reset

func (x *Chore) Reset()

func (*Chore) String

func (x *Chore) String() string

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

Deprecated: Use Chores.ProtoReflect.Descriptor instead.

func (*Chores) GetChores

func (x *Chores) GetChores() []*Chore

func (*Chores) ProtoMessage

func (*Chores) ProtoMessage()

func (*Chores) ProtoReflect

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

func (*Chores) Reset

func (x *Chores) Reset()

func (*Chores) String

func (x *Chores) String() string

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetMessage

func (x *Response) GetMessage() string

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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.

Jump to

Keyboard shortcuts

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