Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)
- type BatchUpdateTaskRequest
- func (*BatchUpdateTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchUpdateTaskRequest) GetTasks() []*UpdateTaskByIDRequest
- func (*BatchUpdateTaskRequest) ProtoMessage()
- func (x *BatchUpdateTaskRequest) ProtoReflect() protoreflect.Message
- func (x *BatchUpdateTaskRequest) Reset()
- func (x *BatchUpdateTaskRequest) String() string
- type CreateTaskRequest
- func (*CreateTaskRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateTaskRequest) GetActivityId() string
- func (x *CreateTaskRequest) GetIsActive() bool
- func (x *CreateTaskRequest) GetPriority() int32
- func (x *CreateTaskRequest) GetTitle() string
- func (*CreateTaskRequest) ProtoMessage()
- func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message
- func (x *CreateTaskRequest) Reset()
- func (x *CreateTaskRequest) String() string
- type DeleteTaskByIDRequest
- func (*DeleteTaskByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteTaskByIDRequest) GetId() string
- func (*DeleteTaskByIDRequest) ProtoMessage()
- func (x *DeleteTaskByIDRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteTaskByIDRequest) Reset()
- func (x *DeleteTaskByIDRequest) String() string
- type GetAllTaskByActivityIDRequest
- func (*GetAllTaskByActivityIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllTaskByActivityIDRequest) GetActivityId() string
- func (x *GetAllTaskByActivityIDRequest) GetIsActive() bool
- func (x *GetAllTaskByActivityIDRequest) GetIsAscending() bool
- func (x *GetAllTaskByActivityIDRequest) GetIsDescending() bool
- func (x *GetAllTaskByActivityIDRequest) GetIsNewest() bool
- func (x *GetAllTaskByActivityIDRequest) GetIsOldest() bool
- func (x *GetAllTaskByActivityIDRequest) GetLimit() int32
- func (x *GetAllTaskByActivityIDRequest) GetPage() int32
- func (x *GetAllTaskByActivityIDRequest) GetPriority() int32
- func (x *GetAllTaskByActivityIDRequest) GetSearch() string
- func (*GetAllTaskByActivityIDRequest) ProtoMessage()
- func (x *GetAllTaskByActivityIDRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllTaskByActivityIDRequest) Reset()
- func (x *GetAllTaskByActivityIDRequest) String() string
- type GetAllTaskByActivityIDResponse
- func (*GetAllTaskByActivityIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllTaskByActivityIDResponse) GetMessage() string
- func (x *GetAllTaskByActivityIDResponse) GetPaging() *TaskPaging
- func (x *GetAllTaskByActivityIDResponse) GetTasks() []*GetTaskByIDResponse
- func (*GetAllTaskByActivityIDResponse) ProtoMessage()
- func (x *GetAllTaskByActivityIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllTaskByActivityIDResponse) Reset()
- func (x *GetAllTaskByActivityIDResponse) String() string
- type GetTaskByIDRequest
- type GetTaskByIDResponse
- func (*GetTaskByIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetTaskByIDResponse) GetActivityId() string
- func (x *GetTaskByIDResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetTaskByIDResponse) GetDeletedAt() *timestamppb.Timestamp
- func (x *GetTaskByIDResponse) GetId() string
- func (x *GetTaskByIDResponse) GetIsActive() bool
- func (x *GetTaskByIDResponse) GetOrder() int32
- func (x *GetTaskByIDResponse) GetPriority() int32
- func (x *GetTaskByIDResponse) GetTitle() string
- func (x *GetTaskByIDResponse) GetUpdatedAt() *timestamppb.Timestamp
- func (*GetTaskByIDResponse) ProtoMessage()
- func (x *GetTaskByIDResponse) ProtoReflect() protoreflect.Message
- func (x *GetTaskByIDResponse) Reset()
- func (x *GetTaskByIDResponse) String() string
- type TaskBaseResponse
- type TaskPaging
- func (*TaskPaging) Descriptor() ([]byte, []int)deprecated
- func (x *TaskPaging) GetCount() int32
- func (x *TaskPaging) GetCurrentPage() int32
- func (x *TaskPaging) GetTotalPage() int32
- func (*TaskPaging) ProtoMessage()
- func (x *TaskPaging) ProtoReflect() protoreflect.Message
- func (x *TaskPaging) Reset()
- func (x *TaskPaging) String() string
- type TaskServiceClient
- type TaskServiceServer
- type UnimplementedTaskServiceServer
- func (UnimplementedTaskServiceServer) BatchUpdate(context.Context, *BatchUpdateTaskRequest) (*TaskBaseResponse, error)
- func (UnimplementedTaskServiceServer) Create(context.Context, *CreateTaskRequest) (*TaskBaseResponse, error)
- func (UnimplementedTaskServiceServer) Delete(context.Context, *DeleteTaskByIDRequest) (*TaskBaseResponse, error)
- func (UnimplementedTaskServiceServer) Get(context.Context, *GetTaskByIDRequest) (*GetTaskByIDResponse, error)
- func (UnimplementedTaskServiceServer) GetAllByUserID(context.Context, *GetAllTaskByActivityIDRequest) (*GetAllTaskByActivityIDResponse, error)
- func (UnimplementedTaskServiceServer) Update(context.Context, *UpdateTaskByIDRequest) (*TaskBaseResponse, error)
- type UnsafeTaskServiceServer
- type UpdateTaskByIDRequest
- func (*UpdateTaskByIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTaskByIDRequest) GetId() string
- func (x *UpdateTaskByIDRequest) GetIsActive() bool
- func (x *UpdateTaskByIDRequest) GetOrder() int32
- func (x *UpdateTaskByIDRequest) GetPriority() int32
- func (x *UpdateTaskByIDRequest) GetTitle() string
- func (*UpdateTaskByIDRequest) ProtoMessage()
- func (x *UpdateTaskByIDRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTaskByIDRequest) Reset()
- func (x *UpdateTaskByIDRequest) String() string
Constants ¶
const ( TaskService_Create_FullMethodName = "/proto.TaskService/Create" TaskService_Get_FullMethodName = "/proto.TaskService/Get" TaskService_GetAllByUserID_FullMethodName = "/proto.TaskService/GetAllByUserID" TaskService_Update_FullMethodName = "/proto.TaskService/Update" TaskService_Delete_FullMethodName = "/proto.TaskService/Delete" TaskService_BatchUpdate_FullMethodName = "/proto.TaskService/BatchUpdate" )
Variables ¶
var File_task_payload_messages_proto protoreflect.FileDescriptor
var File_task_task_service_proto protoreflect.FileDescriptor
var TaskService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.TaskService", HandlerType: (*TaskServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _TaskService_Create_Handler, }, { MethodName: "Get", Handler: _TaskService_Get_Handler, }, { MethodName: "GetAllByUserID", Handler: _TaskService_GetAllByUserID_Handler, }, { MethodName: "Update", Handler: _TaskService_Update_Handler, }, { MethodName: "Delete", Handler: _TaskService_Delete_Handler, }, { MethodName: "BatchUpdate", Handler: _TaskService_BatchUpdate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "task/task_service.proto", }
TaskService_ServiceDesc is the grpc.ServiceDesc for TaskService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTaskServiceServer ¶
func RegisterTaskServiceServer(s grpc.ServiceRegistrar, srv TaskServiceServer)
Types ¶
type BatchUpdateTaskRequest ¶
type BatchUpdateTaskRequest struct { Tasks []*UpdateTaskByIDRequest `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` // contains filtered or unexported fields }
func (*BatchUpdateTaskRequest) Descriptor
deprecated
func (*BatchUpdateTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use BatchUpdateTaskRequest.ProtoReflect.Descriptor instead.
func (*BatchUpdateTaskRequest) GetTasks ¶
func (x *BatchUpdateTaskRequest) GetTasks() []*UpdateTaskByIDRequest
func (*BatchUpdateTaskRequest) ProtoMessage ¶
func (*BatchUpdateTaskRequest) ProtoMessage()
func (*BatchUpdateTaskRequest) ProtoReflect ¶
func (x *BatchUpdateTaskRequest) ProtoReflect() protoreflect.Message
func (*BatchUpdateTaskRequest) Reset ¶
func (x *BatchUpdateTaskRequest) Reset()
func (*BatchUpdateTaskRequest) String ¶
func (x *BatchUpdateTaskRequest) String() string
type CreateTaskRequest ¶
type CreateTaskRequest struct { ActivityId string `protobuf:"bytes,1,opt,name=activity_id,proto3" json:"activity_id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` IsActive *bool `protobuf:"varint,3,opt,name=is_active,proto3,oneof" json:"is_active,omitempty"` Priority int32 `protobuf:"varint,4,opt,name=priority,proto3" json:"priority,omitempty"` // contains filtered or unexported fields }
func (*CreateTaskRequest) Descriptor
deprecated
func (*CreateTaskRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateTaskRequest.ProtoReflect.Descriptor instead.
func (*CreateTaskRequest) GetActivityId ¶
func (x *CreateTaskRequest) GetActivityId() string
func (*CreateTaskRequest) GetIsActive ¶
func (x *CreateTaskRequest) GetIsActive() bool
func (*CreateTaskRequest) GetPriority ¶
func (x *CreateTaskRequest) GetPriority() int32
func (*CreateTaskRequest) GetTitle ¶
func (x *CreateTaskRequest) GetTitle() string
func (*CreateTaskRequest) ProtoMessage ¶
func (*CreateTaskRequest) ProtoMessage()
func (*CreateTaskRequest) ProtoReflect ¶
func (x *CreateTaskRequest) ProtoReflect() protoreflect.Message
func (*CreateTaskRequest) Reset ¶
func (x *CreateTaskRequest) Reset()
func (*CreateTaskRequest) String ¶
func (x *CreateTaskRequest) String() string
type DeleteTaskByIDRequest ¶
type DeleteTaskByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteTaskByIDRequest) Descriptor
deprecated
func (*DeleteTaskByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteTaskByIDRequest.ProtoReflect.Descriptor instead.
func (*DeleteTaskByIDRequest) GetId ¶
func (x *DeleteTaskByIDRequest) GetId() string
func (*DeleteTaskByIDRequest) ProtoMessage ¶
func (*DeleteTaskByIDRequest) ProtoMessage()
func (*DeleteTaskByIDRequest) ProtoReflect ¶
func (x *DeleteTaskByIDRequest) ProtoReflect() protoreflect.Message
func (*DeleteTaskByIDRequest) Reset ¶
func (x *DeleteTaskByIDRequest) Reset()
func (*DeleteTaskByIDRequest) String ¶
func (x *DeleteTaskByIDRequest) String() string
type GetAllTaskByActivityIDRequest ¶
type GetAllTaskByActivityIDRequest struct { ActivityId string `protobuf:"bytes,1,opt,name=activity_id,proto3" json:"activity_id,omitempty"` Search *string `protobuf:"bytes,2,opt,name=search,proto3,oneof" json:"search,omitempty"` Page *int32 `protobuf:"varint,3,opt,name=page,proto3,oneof" json:"page,omitempty"` Limit *int32 `protobuf:"varint,4,opt,name=limit,proto3,oneof" json:"limit,omitempty"` IsActive *bool `protobuf:"varint,5,opt,name=is_active,proto3,oneof" json:"is_active,omitempty"` Priority *int32 `protobuf:"varint,6,opt,name=priority,proto3,oneof" json:"priority,omitempty"` IsNewest *bool `protobuf:"varint,7,opt,name=is_newest,proto3,oneof" json:"is_newest,omitempty"` IsOldest *bool `protobuf:"varint,8,opt,name=is_oldest,proto3,oneof" json:"is_oldest,omitempty"` IsAscending *bool `protobuf:"varint,9,opt,name=is_ascending,proto3,oneof" json:"is_ascending,omitempty"` IsDescending *bool `protobuf:"varint,10,opt,name=is_descending,proto3,oneof" json:"is_descending,omitempty"` // contains filtered or unexported fields }
func (*GetAllTaskByActivityIDRequest) Descriptor
deprecated
func (*GetAllTaskByActivityIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllTaskByActivityIDRequest.ProtoReflect.Descriptor instead.
func (*GetAllTaskByActivityIDRequest) GetActivityId ¶
func (x *GetAllTaskByActivityIDRequest) GetActivityId() string
func (*GetAllTaskByActivityIDRequest) GetIsActive ¶
func (x *GetAllTaskByActivityIDRequest) GetIsActive() bool
func (*GetAllTaskByActivityIDRequest) GetIsAscending ¶
func (x *GetAllTaskByActivityIDRequest) GetIsAscending() bool
func (*GetAllTaskByActivityIDRequest) GetIsDescending ¶
func (x *GetAllTaskByActivityIDRequest) GetIsDescending() bool
func (*GetAllTaskByActivityIDRequest) GetIsNewest ¶
func (x *GetAllTaskByActivityIDRequest) GetIsNewest() bool
func (*GetAllTaskByActivityIDRequest) GetIsOldest ¶
func (x *GetAllTaskByActivityIDRequest) GetIsOldest() bool
func (*GetAllTaskByActivityIDRequest) GetLimit ¶
func (x *GetAllTaskByActivityIDRequest) GetLimit() int32
func (*GetAllTaskByActivityIDRequest) GetPage ¶
func (x *GetAllTaskByActivityIDRequest) GetPage() int32
func (*GetAllTaskByActivityIDRequest) GetPriority ¶
func (x *GetAllTaskByActivityIDRequest) GetPriority() int32
func (*GetAllTaskByActivityIDRequest) GetSearch ¶
func (x *GetAllTaskByActivityIDRequest) GetSearch() string
func (*GetAllTaskByActivityIDRequest) ProtoMessage ¶
func (*GetAllTaskByActivityIDRequest) ProtoMessage()
func (*GetAllTaskByActivityIDRequest) ProtoReflect ¶
func (x *GetAllTaskByActivityIDRequest) ProtoReflect() protoreflect.Message
func (*GetAllTaskByActivityIDRequest) Reset ¶
func (x *GetAllTaskByActivityIDRequest) Reset()
func (*GetAllTaskByActivityIDRequest) String ¶
func (x *GetAllTaskByActivityIDRequest) String() string
type GetAllTaskByActivityIDResponse ¶
type GetAllTaskByActivityIDResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Tasks []*GetTaskByIDResponse `protobuf:"bytes,2,rep,name=tasks,proto3" json:"tasks,omitempty"` Paging *TaskPaging `protobuf:"bytes,3,opt,name=paging,proto3" json:"paging,omitempty"` // contains filtered or unexported fields }
func (*GetAllTaskByActivityIDResponse) Descriptor
deprecated
func (*GetAllTaskByActivityIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllTaskByActivityIDResponse.ProtoReflect.Descriptor instead.
func (*GetAllTaskByActivityIDResponse) GetMessage ¶
func (x *GetAllTaskByActivityIDResponse) GetMessage() string
func (*GetAllTaskByActivityIDResponse) GetPaging ¶
func (x *GetAllTaskByActivityIDResponse) GetPaging() *TaskPaging
func (*GetAllTaskByActivityIDResponse) GetTasks ¶
func (x *GetAllTaskByActivityIDResponse) GetTasks() []*GetTaskByIDResponse
func (*GetAllTaskByActivityIDResponse) ProtoMessage ¶
func (*GetAllTaskByActivityIDResponse) ProtoMessage()
func (*GetAllTaskByActivityIDResponse) ProtoReflect ¶
func (x *GetAllTaskByActivityIDResponse) ProtoReflect() protoreflect.Message
func (*GetAllTaskByActivityIDResponse) Reset ¶
func (x *GetAllTaskByActivityIDResponse) Reset()
func (*GetAllTaskByActivityIDResponse) String ¶
func (x *GetAllTaskByActivityIDResponse) String() string
type GetTaskByIDRequest ¶
type GetTaskByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetTaskByIDRequest) Descriptor
deprecated
func (*GetTaskByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetTaskByIDRequest.ProtoReflect.Descriptor instead.
func (*GetTaskByIDRequest) GetId ¶
func (x *GetTaskByIDRequest) GetId() string
func (*GetTaskByIDRequest) ProtoMessage ¶
func (*GetTaskByIDRequest) ProtoMessage()
func (*GetTaskByIDRequest) ProtoReflect ¶
func (x *GetTaskByIDRequest) ProtoReflect() protoreflect.Message
func (*GetTaskByIDRequest) Reset ¶
func (x *GetTaskByIDRequest) Reset()
func (*GetTaskByIDRequest) String ¶
func (x *GetTaskByIDRequest) String() string
type GetTaskByIDResponse ¶
type GetTaskByIDResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ActivityId string `protobuf:"bytes,2,opt,name=activity_id,proto3" json:"activity_id,omitempty"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"` IsActive bool `protobuf:"varint,4,opt,name=is_active,proto3" json:"is_active,omitempty"` Priority int32 `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"` Order int32 `protobuf:"varint,6,opt,name=order,proto3" json:"order,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=deleted_at,proto3,oneof" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*GetTaskByIDResponse) Descriptor
deprecated
func (*GetTaskByIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetTaskByIDResponse.ProtoReflect.Descriptor instead.
func (*GetTaskByIDResponse) GetActivityId ¶
func (x *GetTaskByIDResponse) GetActivityId() string
func (*GetTaskByIDResponse) GetCreatedAt ¶
func (x *GetTaskByIDResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetTaskByIDResponse) GetDeletedAt ¶
func (x *GetTaskByIDResponse) GetDeletedAt() *timestamppb.Timestamp
func (*GetTaskByIDResponse) GetId ¶
func (x *GetTaskByIDResponse) GetId() string
func (*GetTaskByIDResponse) GetIsActive ¶
func (x *GetTaskByIDResponse) GetIsActive() bool
func (*GetTaskByIDResponse) GetOrder ¶
func (x *GetTaskByIDResponse) GetOrder() int32
func (*GetTaskByIDResponse) GetPriority ¶
func (x *GetTaskByIDResponse) GetPriority() int32
func (*GetTaskByIDResponse) GetTitle ¶
func (x *GetTaskByIDResponse) GetTitle() string
func (*GetTaskByIDResponse) GetUpdatedAt ¶
func (x *GetTaskByIDResponse) GetUpdatedAt() *timestamppb.Timestamp
func (*GetTaskByIDResponse) ProtoMessage ¶
func (*GetTaskByIDResponse) ProtoMessage()
func (*GetTaskByIDResponse) ProtoReflect ¶
func (x *GetTaskByIDResponse) ProtoReflect() protoreflect.Message
func (*GetTaskByIDResponse) Reset ¶
func (x *GetTaskByIDResponse) Reset()
func (*GetTaskByIDResponse) String ¶
func (x *GetTaskByIDResponse) String() string
type TaskBaseResponse ¶
type TaskBaseResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TaskBaseResponse) Descriptor
deprecated
func (*TaskBaseResponse) Descriptor() ([]byte, []int)
Deprecated: Use TaskBaseResponse.ProtoReflect.Descriptor instead.
func (*TaskBaseResponse) GetMessage ¶
func (x *TaskBaseResponse) GetMessage() string
func (*TaskBaseResponse) ProtoMessage ¶
func (*TaskBaseResponse) ProtoMessage()
func (*TaskBaseResponse) ProtoReflect ¶
func (x *TaskBaseResponse) ProtoReflect() protoreflect.Message
func (*TaskBaseResponse) Reset ¶
func (x *TaskBaseResponse) Reset()
func (*TaskBaseResponse) String ¶
func (x *TaskBaseResponse) String() string
type TaskPaging ¶
type TaskPaging struct { CurrentPage int32 `protobuf:"varint,1,opt,name=current_page,proto3" json:"current_page,omitempty"` TotalPage int32 `protobuf:"varint,2,opt,name=total_page,proto3" json:"total_page,omitempty"` Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` // contains filtered or unexported fields }
func (*TaskPaging) Descriptor
deprecated
func (*TaskPaging) Descriptor() ([]byte, []int)
Deprecated: Use TaskPaging.ProtoReflect.Descriptor instead.
func (*TaskPaging) GetCount ¶
func (x *TaskPaging) GetCount() int32
func (*TaskPaging) GetCurrentPage ¶
func (x *TaskPaging) GetCurrentPage() int32
func (*TaskPaging) GetTotalPage ¶
func (x *TaskPaging) GetTotalPage() int32
func (*TaskPaging) ProtoMessage ¶
func (*TaskPaging) ProtoMessage()
func (*TaskPaging) ProtoReflect ¶
func (x *TaskPaging) ProtoReflect() protoreflect.Message
func (*TaskPaging) Reset ¶
func (x *TaskPaging) Reset()
func (*TaskPaging) String ¶
func (x *TaskPaging) String() string
type TaskServiceClient ¶
type TaskServiceClient interface { Create(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*TaskBaseResponse, error) Get(ctx context.Context, in *GetTaskByIDRequest, opts ...grpc.CallOption) (*GetTaskByIDResponse, error) GetAllByUserID(ctx context.Context, in *GetAllTaskByActivityIDRequest, opts ...grpc.CallOption) (*GetAllTaskByActivityIDResponse, error) Update(ctx context.Context, in *UpdateTaskByIDRequest, opts ...grpc.CallOption) (*TaskBaseResponse, error) Delete(ctx context.Context, in *DeleteTaskByIDRequest, opts ...grpc.CallOption) (*TaskBaseResponse, error) BatchUpdate(ctx context.Context, in *BatchUpdateTaskRequest, opts ...grpc.CallOption) (*TaskBaseResponse, error) }
TaskServiceClient is the client API for TaskService 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 NewTaskServiceClient ¶
func NewTaskServiceClient(cc grpc.ClientConnInterface) TaskServiceClient
type TaskServiceServer ¶
type TaskServiceServer interface { Create(context.Context, *CreateTaskRequest) (*TaskBaseResponse, error) Get(context.Context, *GetTaskByIDRequest) (*GetTaskByIDResponse, error) GetAllByUserID(context.Context, *GetAllTaskByActivityIDRequest) (*GetAllTaskByActivityIDResponse, error) Update(context.Context, *UpdateTaskByIDRequest) (*TaskBaseResponse, error) Delete(context.Context, *DeleteTaskByIDRequest) (*TaskBaseResponse, error) BatchUpdate(context.Context, *BatchUpdateTaskRequest) (*TaskBaseResponse, error) // contains filtered or unexported methods }
TaskServiceServer is the server API for TaskService service. All implementations must embed UnimplementedTaskServiceServer for forward compatibility
type UnimplementedTaskServiceServer ¶
type UnimplementedTaskServiceServer struct { }
UnimplementedTaskServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedTaskServiceServer) BatchUpdate ¶
func (UnimplementedTaskServiceServer) BatchUpdate(context.Context, *BatchUpdateTaskRequest) (*TaskBaseResponse, error)
func (UnimplementedTaskServiceServer) Create ¶
func (UnimplementedTaskServiceServer) Create(context.Context, *CreateTaskRequest) (*TaskBaseResponse, error)
func (UnimplementedTaskServiceServer) Delete ¶
func (UnimplementedTaskServiceServer) Delete(context.Context, *DeleteTaskByIDRequest) (*TaskBaseResponse, error)
func (UnimplementedTaskServiceServer) Get ¶
func (UnimplementedTaskServiceServer) Get(context.Context, *GetTaskByIDRequest) (*GetTaskByIDResponse, error)
func (UnimplementedTaskServiceServer) GetAllByUserID ¶
func (UnimplementedTaskServiceServer) GetAllByUserID(context.Context, *GetAllTaskByActivityIDRequest) (*GetAllTaskByActivityIDResponse, error)
func (UnimplementedTaskServiceServer) Update ¶
func (UnimplementedTaskServiceServer) Update(context.Context, *UpdateTaskByIDRequest) (*TaskBaseResponse, error)
type UnsafeTaskServiceServer ¶
type UnsafeTaskServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTaskServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TaskServiceServer will result in compilation errors.
type UpdateTaskByIDRequest ¶
type UpdateTaskByIDRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title *string `protobuf:"bytes,2,opt,name=title,proto3,oneof" json:"title,omitempty"` IsActive *bool `protobuf:"varint,3,opt,name=is_active,proto3,oneof" json:"is_active,omitempty"` Priority *int32 `protobuf:"varint,4,opt,name=priority,proto3,oneof" json:"priority,omitempty"` Order *int32 `protobuf:"varint,5,opt,name=order,proto3,oneof" json:"order,omitempty"` // contains filtered or unexported fields }
func (*UpdateTaskByIDRequest) Descriptor
deprecated
func (*UpdateTaskByIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTaskByIDRequest.ProtoReflect.Descriptor instead.
func (*UpdateTaskByIDRequest) GetId ¶
func (x *UpdateTaskByIDRequest) GetId() string
func (*UpdateTaskByIDRequest) GetIsActive ¶
func (x *UpdateTaskByIDRequest) GetIsActive() bool
func (*UpdateTaskByIDRequest) GetOrder ¶
func (x *UpdateTaskByIDRequest) GetOrder() int32
func (*UpdateTaskByIDRequest) GetPriority ¶
func (x *UpdateTaskByIDRequest) GetPriority() int32
func (*UpdateTaskByIDRequest) GetTitle ¶
func (x *UpdateTaskByIDRequest) GetTitle() string
func (*UpdateTaskByIDRequest) ProtoMessage ¶
func (*UpdateTaskByIDRequest) ProtoMessage()
func (*UpdateTaskByIDRequest) ProtoReflect ¶
func (x *UpdateTaskByIDRequest) ProtoReflect() protoreflect.Message
func (*UpdateTaskByIDRequest) Reset ¶
func (x *UpdateTaskByIDRequest) Reset()
func (*UpdateTaskByIDRequest) String ¶
func (x *UpdateTaskByIDRequest) String() string