task

package
v0.0.0-...-bc169e4 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
var File_task_payload_messages_proto protoreflect.FileDescriptor
View Source
var File_task_task_service_proto protoreflect.FileDescriptor
View Source
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 (*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 (*GetAllTaskByActivityIDRequest) Reset

func (x *GetAllTaskByActivityIDRequest) Reset()

func (*GetAllTaskByActivityIDRequest) 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 (*GetAllTaskByActivityIDResponse) GetTasks

func (*GetAllTaskByActivityIDResponse) ProtoMessage

func (*GetAllTaskByActivityIDResponse) ProtoMessage()

func (*GetAllTaskByActivityIDResponse) ProtoReflect

func (*GetAllTaskByActivityIDResponse) Reset

func (x *GetAllTaskByActivityIDResponse) Reset()

func (*GetAllTaskByActivityIDResponse) 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

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.

type TaskServiceServer

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) Create

func (UnimplementedTaskServiceServer) Delete

func (UnimplementedTaskServiceServer) Get

func (UnimplementedTaskServiceServer) Update

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

Jump to

Keyboard shortcuts

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