Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_internal_handler_taskhdl_protos_task_request_proto protoreflect.FileDescriptor
var File_internal_handler_taskhdl_protos_task_response_proto protoreflect.FileDescriptor
var File_internal_handler_taskhdl_protos_task_service_proto protoreflect.FileDescriptor
var Task_ServiceDesc = grpc.ServiceDesc{ ServiceName: "task.Task", HandlerType: (*TaskServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetTasks", Handler: _Task_GetTasks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/handler/taskhdl/protos/task_service.proto", }
Task_ServiceDesc is the grpc.ServiceDesc for Task service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTaskServer ¶
func RegisterTaskServer(s grpc.ServiceRegistrar, srv TaskServer)
Types ¶
type GetTasksRequest ¶
type GetTasksRequest struct {
// contains filtered or unexported fields
}
Empty request
func (*GetTasksRequest) Descriptor
deprecated
func (*GetTasksRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTasksRequest.ProtoReflect.Descriptor instead.
func (*GetTasksRequest) ProtoMessage ¶
func (*GetTasksRequest) ProtoMessage()
func (*GetTasksRequest) ProtoReflect ¶
func (x *GetTasksRequest) ProtoReflect() protoreflect.Message
func (*GetTasksRequest) Reset ¶
func (x *GetTasksRequest) Reset()
func (*GetTasksRequest) String ¶
func (x *GetTasksRequest) String() string
type GetTasksResponse ¶
type GetTasksResponse struct { Tasks []string `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*GetTasksResponse) Descriptor
deprecated
func (*GetTasksResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTasksResponse.ProtoReflect.Descriptor instead.
func (*GetTasksResponse) GetTasks ¶
func (x *GetTasksResponse) GetTasks() []string
func (*GetTasksResponse) ProtoMessage ¶
func (*GetTasksResponse) ProtoMessage()
func (*GetTasksResponse) ProtoReflect ¶
func (x *GetTasksResponse) ProtoReflect() protoreflect.Message
func (*GetTasksResponse) Reset ¶
func (x *GetTasksResponse) Reset()
func (*GetTasksResponse) String ¶
func (x *GetTasksResponse) String() string
type TaskClient ¶
type TaskClient interface {
GetTasks(ctx context.Context, in *GetTasksRequest, opts ...grpc.CallOption) (*GetTasksResponse, error)
}
TaskClient is the client API for Task 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 NewTaskClient ¶
func NewTaskClient(cc grpc.ClientConnInterface) TaskClient
type TaskServer ¶
type TaskServer interface { GetTasks(context.Context, *GetTasksRequest) (*GetTasksResponse, error) // contains filtered or unexported methods }
TaskServer is the server API for Task service. All implementations must embed UnimplementedTaskServer for forward compatibility
type UnimplementedTaskServer ¶
type UnimplementedTaskServer struct { }
UnimplementedTaskServer must be embedded to have forward compatible implementations.
func (UnimplementedTaskServer) GetTasks ¶
func (UnimplementedTaskServer) GetTasks(context.Context, *GetTasksRequest) (*GetTasksResponse, error)
type UnsafeTaskServer ¶
type UnsafeTaskServer interface {
// contains filtered or unexported methods
}
UnsafeTaskServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaskServer will result in compilation errors.